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:
jonny_jr9
2024-02-19 10:46:56 +01:00
parent 2fcf17feda
commit 6e9b3d96d9
2 changed files with 13 additions and 8 deletions

View File

@@ -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);
}
}