Hello,
I'm using a NAZE32_REV5 with FEATURE_VBAT ON and power_adc_channel = 5 with a ACS756 sensor connecte to it.
The VBat and amperage are correcly measured and transmitted, but the mAhdrawn remains always 0 because the resolution is 1Ah, so it will take time, or never in one filght, to get a value different than 0. Based on this code:
mAhdrawnRaw += (amperage * vbatCycleTime) / 1000;
mAhdrawn = mAhdrawnRaw / (3600 * 100);
Is my understanding corrent?
If yes, does it make sense to work with [mAh] resolution instead of [Ah]?
Thanks a lot!