Skip to content

Commit

Permalink
Assert when stabilizer task blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gemenerik committed Oct 8, 2024
1 parent 83e637d commit e9ac614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/src/stabilizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void rateSupervisorTask(void *pvParameters) {
} else {
// Handle the case where the semaphore was not given within the timeout
DEBUG_PRINT("ERROR: stabilizerTask is blocking\n");
motorsStop();
ASSERT(false); // For safety, assert if the stabilizer task is blocking to ensure motor shutdown
}
}
}
Expand Down

0 comments on commit e9ac614

Please sign in to comment.