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:
parent
988d0a9b5c
commit
f625cb261c
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue