AP_Math: add defines for AP_SEC_PER_HOUR and AP_MSEC_PER_HOUR

This commit is contained in:
Tom Pittenger 2021-11-18 14:23:27 -08:00 committed by Peter Barker
parent 6b249aefbc
commit ec5820044b
1 changed files with 2 additions and 0 deletions

View File

@ -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_MSEC 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_MSEC_PER_WEEK (AP_SEC_PER_WEEK * AP_MSEC_PER_SEC)