Open limonspb opened 2 weeks ago
Do you want to test this code? You can flash it directly from Betaflight Configurator:
#13637
(this pull request number) in the Select commit
field of the Configurator firmware flasher tab (you need to Enable expert mode
, Show release candidates
and Development
).WARNING: It may be unstable. Use only for testing!
Situation when
stats_min_armed_time_s
is set to something else than -1. This activates persistent stats saving upon disarm, like flights counter, total distance, total time in the air.This can create a problem, when person disarms during crash, it can launch stats saving. And battery might unplug during stats saving, corrupting the configuration.
This change keeps rescheduling writeEEPROM if gyro is still moving. new parameter introduced
stats_saving_max_gyro_rate
in degrees.For proper testing need a quad with a beeper. Steps:
set stats_min_armed_time_s = 3
, saveOld behavior: second disarmed tones are heard. New behavior: second disarming tones are heard only after you stop wiggling quad.
possible future improvements: