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

Low battery alarm beeps when board connected to pc without battery #9930

Closed
tiriad opened this issue Apr 10, 2024 · 1 comment
Closed

Low battery alarm beeps when board connected to pc without battery #9930

tiriad opened this issue Apr 10, 2024 · 1 comment

Comments

@tiriad
Copy link
Contributor

tiriad commented Apr 10, 2024

Current Behavior

I have two similar flight controlers, one original and other clone. When updating from version 6, the original card reads 0V when connected to the pc, but the clone card reads approximately 1,20V. After this correction #9147 when connecting it without battery it detects 1 cell and activates BAT_CRIT_LOW even set beeper -ON_USB.

Steps to Reproduce

  1. Flash version above 7.0
  2. Set predefined settings
  3. Activate motors and servos output
  4. The beeper is activated by BAT_CRIT_LOW

Expected behavior

When the board is connected to a computer and the battery is not connected, the low battery alarm should not sound.

Suggested solution(s)

For example, set a condition that if the battery voltage is lower than 2.5 V no battery is connected or some more sophisticated solution.

#define VBATT_PRESENT_THRESHOLD 100 // Minimum voltage to consider battery present

For example VBATT_PRESENT_THRESHOLD = 2000

@tiriad tiriad changed the title Low battery alarm beeps when card is connected to pc without battery Low battery alarm beeps when board connected to pc without battery Apr 10, 2024
@b14ckyy
Copy link
Collaborator

b14ckyy commented Apr 11, 2024

fixed in #9933

@b14ckyy b14ckyy closed this as completed Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants