mirror of https://github.com/ArduPilot/ardupilot
AP_Math: added speed/distance conversions
This commit is contained in:
parent
2ce7955614
commit
2480a62e55
|
@ -101,3 +101,9 @@ static const double WGS84_E = (sqrt(2 * WGS84_F - WGS84_F * WGS84_F));
|
||||||
#define AP_MSEC_PER_SEC 1000ULL
|
#define AP_MSEC_PER_SEC 1000ULL
|
||||||
#define AP_SEC_PER_WEEK (7ULL * 86400ULL)
|
#define AP_SEC_PER_WEEK (7ULL * 86400ULL)
|
||||||
#define AP_MSEC_PER_WEEK (AP_SEC_PER_WEEK * AP_MSEC_PER_SEC)
|
#define AP_MSEC_PER_WEEK (AP_SEC_PER_WEEK * AP_MSEC_PER_SEC)
|
||||||
|
|
||||||
|
// speed and distance conversions
|
||||||
|
#define KNOTS_TO_METERS_PER_SECOND 0.51444
|
||||||
|
#define FEET_TO_METERS 0.3048
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue