mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Fix GPS speed and max speed to respect the units selection
Previously GPS speed and max speed would always display in KPH even if the user chose imperial units. Now they will display in MPH for imperial units.
This commit is contained in:
parent
c0b27e6d0c
commit
8c24176d96
2 changed files with 18 additions and 3 deletions
|
@ -38,6 +38,7 @@
|
|||
#define DEGREES_TO_RADIANS(angle) ((angle) * 0.0174532925f)
|
||||
|
||||
#define CM_S_TO_KM_H(centimetersPerSecond) (centimetersPerSecond * 36 / 1000)
|
||||
#define CM_S_TO_MPH(centimetersPerSecond) (((centimetersPerSecond * 10000) / 5080) / 88)
|
||||
|
||||
#define MIN(a,b) \
|
||||
__extension__ ({ __typeof__ (a) _a = (a); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue