ft/s unit added

This commit is contained in:
Andre Bernet
2015-04-02 23:55:55 +04:00
parent 7000d3bf82
commit 4e4be82875
19 changed files with 24 additions and 7 deletions
+2 -2
View File
@@ -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;
}