AP_Math: Add conversion Ams to mAh

This commit is contained in:
Gone4Dirt 2020-11-18 11:21:34 +00:00 committed by Peter Barker
parent b788a172c8
commit 5edae526fd
1 changed files with 3 additions and 1 deletions

View File

@ -106,4 +106,6 @@ static const double WGS84_E = (sqrt(2 * WGS84_F - WGS84_F * WGS84_F));
#define KNOTS_TO_METERS_PER_SECOND 0.51444
#define FEET_TO_METERS 0.3048
// Convert amps milliseconds to milliamp hours
// Amp.millisec to milliAmp.hour = 1/1E3(ms->s) * 1/3600(s->hr) * 1000(A->mA)
#define AMS_TO_MAH 0.000277777778f