Skip to content

mAhdrawn using [Ah] resolution, so reporting 0 in most of the flights #277

Description

@ciafe

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions