mirror of https://github.com/ArduPilot/ardupilot
AP_Math: Add conversion Ams to mAh
This commit is contained in:
parent
b788a172c8
commit
5edae526fd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue