mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-26 01:35:16 +03:00
ft/s unit added
This commit is contained in:
parent
7000d3bf82
commit
4e4be82875
19 changed files with 24 additions and 7 deletions
|
@ -543,8 +543,8 @@ int32_t convertTelemetryValue(int32_t value, uint8_t unit, uint8_t prec, uint8_t
|
|||
for (int i=prec; i<destPrec; i++)
|
||||
value *= 10;
|
||||
|
||||
if (unit == UNIT_METERS) {
|
||||
if (destUnit == UNIT_FEET) {
|
||||
if (unit == UNIT_METERS || unit == UNIT_METERS_PER_SECOND) {
|
||||
if (destUnit == UNIT_FEET || destUnit == UNIT_FEET_PER_SECOND) {
|
||||
// m to ft *105/32
|
||||
value = (value * 105) / 32;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue