mirror of https://github.com/ArduPilot/ardupilot
AP_Math: add defines for AP_SEC_PER_HOUR and AP_MSEC_PER_HOUR
This commit is contained in:
parent
6b249aefbc
commit
ec5820044b
|
@ -100,6 +100,8 @@ static const double WGS84_E = (sqrt(2 * WGS84_F - WGS84_F * WGS84_F));
|
||||||
#define AP_USEC_PER_SEC 1000000ULL
|
#define AP_USEC_PER_SEC 1000000ULL
|
||||||
#define AP_USEC_PER_MSEC 1000ULL
|
#define AP_USEC_PER_MSEC 1000ULL
|
||||||
#define AP_MSEC_PER_SEC 1000ULL
|
#define AP_MSEC_PER_SEC 1000ULL
|
||||||
|
#define AP_SEC_PER_HOUR (3600ULL)
|
||||||
|
#define AP_MSEC_PER_HOUR (AP_SEC_PER_HOUR * AP_MSEC_PER_SEC)
|
||||||
#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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue