remove while1 from task
This commit is contained in:
@@ -33,7 +33,6 @@ extern int16_t pidValue;
|
|||||||
void timer_Task(void *pdata) {
|
void timer_Task(void *pdata) {
|
||||||
timer_Init();
|
timer_Init();
|
||||||
|
|
||||||
while(1){
|
|
||||||
if(pidValue){
|
if(pidValue){
|
||||||
uint16_t interval = 1.337*(64000/abs(pidValue));
|
uint16_t interval = 1.337*(64000/abs(pidValue));
|
||||||
uint8_t direction = pidValue<0;
|
uint8_t direction = pidValue<0;
|
||||||
@@ -53,7 +52,6 @@ void timer_Task(void *pdata) {
|
|||||||
timer_Stop(0);
|
timer_Stop(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* * * intializes and starts two timers with respective puls generation on gpio pins * * */
|
/* * * intializes and starts two timers with respective puls generation on gpio pins * * */
|
||||||
int timer_Init(){
|
int timer_Init(){
|
||||||
|
|||||||
Reference in New Issue
Block a user