mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Lower priority of HIDTest task
Commit @583 uncomments the HIDTest task creation. HIDTest task is configured to run at priority 4 (== tskIDLE_PRIORITY + 4) which is higher priority than the "System" task at priority 3 (== tskIDLE_PRIORITY + 3). The HIDTest task never blocks so it prevents the system task (and any other task of priority less than 4) from ever running. This commit does not fix the root problem of HIDTest never blocking, but rather lowers its priority to be equal to the system task so that they share the CPU. This is a temporary workaround. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@586 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
10215c96c3
commit
42c4c9b343
@ -126,7 +126,7 @@ void OpenPilotInit()
|
||||
|
||||
/* Create test tasks */
|
||||
//xTaskCreate(TaskTesting, (signed portCHAR *)"Testing", configMINIMAL_STACK_SIZE , NULL, 4, NULL);
|
||||
xTaskCreate(TaskHIDTest, (signed portCHAR *)"HIDTest", configMINIMAL_STACK_SIZE , NULL, 4, NULL);
|
||||
xTaskCreate(TaskHIDTest, (signed portCHAR *)"HIDTest", configMINIMAL_STACK_SIZE , NULL, 3, NULL);
|
||||
//xTaskCreate(TaskServos, (signed portCHAR *)"Servos", configMINIMAL_STACK_SIZE , NULL, 3, NULL);
|
||||
//xTaskCreate(TaskSDCard, (signed portCHAR *)"SDCard", configMINIMAL_STACK_SIZE, NULL, (tskIDLE_PRIORITY + 2), NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user