Skip to content
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

battery - fix BATTERY_NOT_PRESENT detection, detection logic change #13599

Merged
merged 3 commits into from
May 4, 2024

Commits on Apr 28, 2024

  1. 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 betaflight#13350 (time for
    comparison is 50 instead of 500ms).
    ledvinap committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    72fe040 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. 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
      - slowly changing voltage will update threshold, but voltage will be
        considered stable
      - 1 update/s (100mV/s) is tolerated
    ledvinap committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    6495218 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. Configuration menu
    Copy the full SHA
    4ec6328 View commit details
    Browse the repository at this point in the history