Initialize motorDriver in STACK instead of HEAP, pointer
Since moving all objects to heap encoder started to lag interrupt not recognizing some single events in MENU fast executen of motordriver setTarget caused the lag, initialize it in STACK while still using a pointer now
This commit is contained in:
@@ -19,7 +19,7 @@ void task_motorctl( void * task_motorctl_parameters ){
|
||||
while(1){
|
||||
objects->motorRight->handle();
|
||||
objects->motorLeft->handle();
|
||||
vTaskDelay(20 / portTICK_PERIOD_MS);
|
||||
vTaskDelay(10 / portTICK_PERIOD_MS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user