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
Blackbox - Add logging of critical rx loss state flags. #1266
Comments
Implemented now! Is rxSignalReceived supposed to be this gnarly? I set rx_max_usec to 1950 so I could trigger failsafe by going full throttle (2000). You can see that after my throttle reaches 2000, rxFlightChannelsValid correctly goes to zero and failsafe behaviour begins. But should rxSignalReceived be ping-ponging like this? I'm using a D4R-II in PPM mode. EDIT: Looptime is 3500, Naze32. |
awesome. it depends where you log it. I'll look at your implementation. |
i think you need another method that updates those 'slow' fields. it's likely that you're logging the data between the time the flag is reset after and before the flag is updated after the rx data is verified. I will take a look and adjust if that is the case. |
The slow data is only loaded by Blackbox at the end of a main loop iteration, so it seems like the Rx loss detection fields should be in a valid state at that point? |
yes correct. the plot thickens. |
Can it be that your transmitter is very close to your receiver and that it indeed does not receive good frames? I remember that this was reported by @Maca55 on 27 juli #995 (comment) |
modified debug output (currently disabled) To solve problem as indicated here: cleanflight/cleanflight#1266 (comment) and here: cleanflight/cleanflight#1340 and here: cleanflight/cleanflight#1342 Tested on FrSKY X4RSB with latest CPPM firmware (non-EU version). Firmware filename: X4R-X4RSB_cppm_non-EU_150630 In both SBUS and CPPM mode.
modified debug output (currently disabled) To solve problem as indicated here: cleanflight#1266 (comment) and here: cleanflight#1340 and here: cleanflight#1342 Tested on FrSKY X4RSB with latest CPPM firmware (non-EU version). Firmware filename: X4R-X4RSB_cppm_non-EU_150630 In both SBUS and CPPM mode. --- Added delay to rxfail detection All channels are monitored for bad (out of valid range) pulses. On bad pulses channel data will HOLD the last value for a period of MAX_INVALID_PULS_TIME (300ms) before starting rxfail substitution. This should prevent a too aggressive reaction to small dropouts. --- Init ARM switch rc channel to OFF for safety Initialize ARM switch to OFF position when arming via switch is defined. To prevent arming during init when RX is disconnected and/or when RX is connected but TX is still off. --- Modified rx_rx_unittest.cc Adapted because rxInit() parameters changed. Added tests for ARM switch initialization. No further tests added. --- Move smoothing of rcData to rcCommand Commit from @borisbstyle pr cleanflight#1418 rc_smoothing function has changed to leave rcData unchanged in cleanflight#1418
…_correctness Made serial const correct
The text was updated successfully, but these errors were encountered: