minimosd-extra
minimosd-extra copied to clipboard
Incorrect battery readings after MINIMOSD power failure
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
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.