hall
This commit is contained in:
parent
cdbd5c4bfd
commit
333c040db5
@ -24,7 +24,6 @@ int main(void)
|
|||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
led_ctrl(1);
|
led_ctrl(1);
|
||||||
// rt_kprintf("hello rtthread \r\n");
|
|
||||||
HAL_Delay(500);
|
HAL_Delay(500);
|
||||||
led_ctrl(0);
|
led_ctrl(0);
|
||||||
HAL_Delay(500);
|
HAL_Delay(500);
|
||||||
|
@ -109,7 +109,7 @@ void calc_hall_angle(hall_handle_t *handle, uint8_t new_state)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
/* Bad hall sensor configutarion so update the speed reliability */
|
/* Bad hall sensor configutarion so update the speed reliability */
|
||||||
handle->SensorIsReliable = false;
|
handle->SensorIsReliable = 0;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ enum
|
|||||||
NEGATIVE = -1,
|
NEGATIVE = -1,
|
||||||
POSITIVE = 1,
|
POSITIVE = 1,
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* 开环控制
|
|
||||||
* 1. 计算电角度
|
|
||||||
* 2.
|
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user