Skip to content

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

@ciafe

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions