1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 09:16:07 +03:00

Define HZ_TO_INTERVAL macro

This commit is contained in:
Hans Christian Olaussen 2019-02-10 14:42:04 +01:00
parent 988d0a9b5c
commit f625cb261c

View file

@ -57,6 +57,7 @@
#define Q12 (1 << 12)
#define HZ_TO_INTERVAL(x) (1.0f / (x))
#define HZ_TO_INTERVAL_US(x) (1000000 / (x))
typedef int32_t fix12_t;