macroDefinitions
Defines
-
MAX_CIRCLE_NUM
-
MAX_LIMB_PNTS
-
MAX_EFF_CNT
-
MAX_NUM_CSS_SENSORS
-
MAX_ST_VEH_COUNT
-
NANO2SEC
-
SEC2NANO
-
RECAST6X6
-
RECAST3X3
-
RECAST2x2
-
SEC2HOUR
Functions
-
static inline double nanoToSec(uint64_t nanos)
Converts nanoseconds to seconds (double), with basic precision check. Returns NAN if conversion would lose precision.
-
static inline double diffNanoToSec(uint64_t time1Nano, uint64_t time2Nano)
Takes two times in nanoseconds, takes their difference and converts to seconds (double), with basic precision check. Returns NAN if conversion would lose precision.
-
static inline uint64_t secToNano(double seconds)
Converts seconds (double) to nanoseconds (uint64_t). Returns NAN on error (e.g. negative input or overflow)