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

Incorrect battery readings after MINIMOSD power failure #244

Open
Gennadiy1990 opened this issue Sep 4, 2023 · 1 comment
Open

Incorrect battery readings after MINIMOSD power failure #244

Gennadiy1990 opened this issue Sep 4, 2023 · 1 comment

Comments

@Gennadiy1990
Copy link

Gennadiy1990 commented Sep 4, 2023

Hi!
When turning off and on the power of the MINIMOSD board (with the PIX autopilot constantly on), the battery level readings on the OSD screen become about 30% instead of the real 90% according to MAVLINK telemetry. And then they decrease from 30% and below with a battery discharge from 90% and below. If according to MAVLINK the battery had a charge of more than 90%, then after turning the power off and on of the MINIMOSD board, the readings on the OSD screen and on MAVLINK coincide. Please explain what is the reason or in what files is the battery charge value processed and what algorithm? How to remove this error?
Thanks!

Version
MINIMOSD-current and several previous
MAVLINK 9.4.8

Board type

on foto https://ibb.co/XySm2Wq CPU Atmega 328P

How "canonical" OSD firmware works?

[ ] Works fine
[ ] The same bug
[ ] Not applicable
[ x ] Not tested

@Gennadiy1990
Copy link
Author

Looked at part of the code. I suspect that if power is not connected to the autopilot and MINIMOSD at the same time, the program switches to measuring the battery voltage through its own ADC. This happens even though MAVLINK is present. If this is the case, then it is not clear how to prevent the program from working with its own ADC channel to measure the battery voltage.

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

1 participant