Closed haslinghuis closed 1 week ago
Do you want to test this code? You can flash it directly from Betaflight Configurator:
#13623
(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!
backport of #13599
battery - fix BATTERY_NOT_PRESENT detection, detection logic change
Detection logic is refactored - battery voltage delta is tested each 50ms, voltage is considered stable when difference of last 10 samples is smaller than 100mV This makes stable threshold more forgiving than #13350 (time for comparison is 50 instead of 500ms).
battery - improve stable voltage detection
voltageStablePrevFiltered every time delta is exceeded
voltage within range is ANDed over 100ms periods
voltage is stable if it was within range for 10 out of 11 periods
battery - fuix typos, improve comments