-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fixed RX task check. #10649
Fixed RX task check. #10649
Conversation
I’ve just ordered an R-XSR to investigate this. The check function takes a lot of time so it would be better to preserve the state as required between calls. I’ll raise another PR with a fix that gives optimal timing once I’ve been able to reproduce this. |
Yeah, there is potentially quite a bit of optimisation possible, by moving some of the state updating that is currently done in the check function into the actual task. |
@mikeller I have tested this and it works, but unfortunately the cpu load goes to 100% when the transmitter is switched on. |
The check function is quite time consuming, so we really only want to be calling it once. What state is being lost to cause the FrSky rx not to work? |
881de80
to
82ff9fb
Compare
@TheIsotopes: Thanks for testing - the feedback was helpful. Turns out this was a bug in the state machine - if there are no updates pending we need to go back to checking, and not busy wait in the processing state. Please try again: betaflight_4.3.0_STM32F745_82ff9fb00.zip |
@mikeller cpu load is normal and telemetry is working ... but there are still problems with the rx task.
EDIT: Stick command also not working e.g. calibrate Gyro EDIT2: fixed in #10659 |
Fixes #10647.
We need to run the entire task check every time, to avoid losing status updates while waiting for the main task to be scheduled.