-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propeller test not reporting motorPass #1430
Comments
Perhaps there is something not working when running it from a script. Do you get the same behaviour if you launch the test from the cfclient->console tab? |
Same behavior. This is what I'm getting:
It only does M1 and M2, then restarts and gets stuck at assert fail. |
Interestingly it does not find the lighthouse deck after restarting. |
The assertion is here: void rateSupervisorTask(void *pvParameters) {
while (1) {
// Wait for the semaphore to be given by the stabilizerTask
if (xSemaphoreTake(xRateSupervisorSemaphore, M2T(2000)) == pdTRUE) {
// Validate the rate
if (!rateSupervisorValidate(&rateSupervisorContext, xTaskGetTickCount())) {
if (!rateWarningDisplayed) {
DEBUG_PRINT("WARNING: stabilizer loop rate is off (%lu)\n", rateSupervisorLatestCount(&rateSupervisorContext));
rateWarningDisplayed = true;
}
}
} else {
// Handle the case where the semaphore was not given within the timeout
DEBUG_PRINT("ERROR: stabilizerTask is blocking\n");
ASSERT(false); // For safety, assert if the stabilizer task is blocking to ensure motor shutdown
}
}
} Any insight on how to fix it is greatly appreciated. |
Ahhh, this has been fixed in this PR. If you flash the latest release 2024.10.2 it should work again. |
Fixed in #1432 |
I was way to fast. The PR does not fix this issue. |
I am trying to get the automatic propeller test to work. I am using python cflib and doing the following:
I am getting
{'health.motorPass': 0}
despite all 4 propellers being on.When doing the test, two of the propellers spin, then I get 4 beeps (like when powering on the CF), followed by a repeating pattern of 4 quick red blinks and a pause.
health.motorPass
after running the test?The text was updated successfully, but these errors were encountered: