mirror of https://github.com/ArduPilot/ardupilot
AP_Math: add conversions from metres to feet
This commit is contained in:
parent
13195464d5
commit
40c4bf5d6a
|
@ -110,6 +110,7 @@ static const double WGS84_E = (sqrt(2 * WGS84_F - WGS84_F * WGS84_F));
|
||||||
// speed and distance conversions
|
// speed and distance conversions
|
||||||
#define KNOTS_TO_METERS_PER_SECOND 0.51444
|
#define KNOTS_TO_METERS_PER_SECOND 0.51444
|
||||||
#define FEET_TO_METERS 0.3048
|
#define FEET_TO_METERS 0.3048
|
||||||
|
#define METRES_TO_FEET 3.280839895013123
|
||||||
|
|
||||||
// Convert amps milliseconds to milliamp hours
|
// Convert amps milliseconds to milliamp hours
|
||||||
// Amp.millisec to milliAmp.hour = 1/1E3(ms->s) * 1/3600(s->hr) * 1000(A->mA)
|
// Amp.millisec to milliAmp.hour = 1/1E3(ms->s) * 1/3600(s->hr) * 1000(A->mA)
|
||||||
|
|
Loading…
Reference in New Issue