-
Notifications
You must be signed in to change notification settings - Fork 20.1k
RC: improve detection of weak RC protocols #22911
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
base: master
Are you sure you want to change the base?
Conversation
require 10 good frames for weak protocols, 2 for strong
9233311 to
a961be3
Compare
|
I tried reproducing the detection error and it detected SBUS every time... No idea why it detected wrong yesterday. |
were you on battery power, with SiK radio telem and no USB connection? |
Yes. Even connected via MAVProxy not Mission Planner in case there's any difference there. I also tried moving the quad further away (to another room) in case extra noise from the distance or something makes that difference. Just realised that I didn't test whether switch positions could affect it - like perhaps it's if the channels are at certain values that it makes the SBUS look more like DSM? |
good thought, that could well be it! |
|
Tried again with different RC inputs (of the values that it could've been that day), but still no mis-detection. |
|
@MichelleRos I was connected at the time I requested the reboot, and recorded this on SBUS just before the reboot: |
|
@andyp1per can you test with DSM ? |
|
@MichelleRos has shown this does NOT fix the issue, new version of the PR soon |
Real Soon Now? @tridge can you recall if you actually had a replacement branch for these patches? |
I thought we'd mostly decided that since this isn't a flight risk since we no longer redetect later, we were just going with the plan that if this happens we tell people to set the RC_PROTOCOLS parameter? |
This is to fix an issue with detection of DSM on a vehicle that actually has SBUS. It just increases the number of frames required for DSM detection to 10
@MichelleRos this PR is because of the issue on your quad yesterday. It seems that a soft reboot when you are on batter power and connected via SiK radio sometimes detection DSM instead of SBUS. Can you please first reproduce the issue with current master (I think it happened maybe 1 time in 3 on soft reboot?) then see if this PR fixes it.
Thanks!