-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
FIX: Crash after ST24/16 power down PX4#13265 #13266
base: main
Are you sure you want to change the base?
Conversation
reset _decode_state and _rxlen after RC data read
export the function
BUG: when close the ST24/16 controller power , rcinput will switch that receiver type, but in st24.c two variable is not reset 1. _decode_state 2. _rxlen And the SR24 receiver will keep outputting RC data. That maybe overflow RCInput::work_s and system will crash because kwork_queue used invalid dq.BLINK or FLINK pointers How to FIX: reset _decode_state and _rxlen after RC data read
NEW: add st24 reset code
NEW: add st24 reset code
Hi @ultrasystem, why did you close this again? |
Hi, @julianoes and @ultrasystem, I think I was able to reproduce this on V1.10.0-beta1, running on stock Yuneec Typhoon H 480 (ST16 transmitter, SR24 receiver) with custom board definitions (based on Omnibus F4SD) and a customized bootloader. When the ST16 is powered down or the control link is disconnected otherwise, random crashy things happen, like communication timeout to QGroundcontrol with a complete system freeze, Gyro0/Accelerometer0/Magnetometer0 timeout, motor shutdown etc. |
The st24_reset(); seems to fix the issue and work properly when called at line 530 of RCInput.cpp. The FC does not crash when transmitter is powered off, the failsafe mode is enabled properly, and it seems to fly OK too, at least during my short two test flights indoors.
|
@tonirosendahl ok, can you make a pull request for the fix that you're suggesting? |
Some people don't allow me to publish this fix publicly, but fortunately, as @tonirosendahl said, st24_reset can be used to resolve this bug before the DSM state transition. |
Fix reset function style check error
That would be sad. It's just a bugfix right, not a proprietary super feature 😄? |
Can someone check up on this pull request? it seems to have errors, but if its not too hard to fix it would be great to get this in master. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
reset _decode_state and _rxlen after RC data read