From 2480a62e55f095458337a3db2b61c5ccb865d63f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Nov 2017 14:35:01 +1100 Subject: [PATCH] AP_Math: added speed/distance conversions --- libraries/AP_Math/definitions.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/AP_Math/definitions.h b/libraries/AP_Math/definitions.h index 89a44c3256..7e7286d10b 100644 --- a/libraries/AP_Math/definitions.h +++ b/libraries/AP_Math/definitions.h @@ -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_SEC_PER_WEEK (7ULL * 86400ULL) #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 + +