mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Fixes #1362
This commit is contained in:
parent
7162ab5399
commit
57b08fb064
7 changed files with 29 additions and 17 deletions
|
@ -762,7 +762,7 @@ ls_telemetry_value_t maxTelemValue(uint8_t channel)
|
|||
case TELEM_MAX_SPEED:
|
||||
case TELEM_ASPEED:
|
||||
case TELEM_MAX_ASPEED:
|
||||
return 2000;
|
||||
return 20000;
|
||||
case TELEM_CELL:
|
||||
case TELEM_MIN_CELL:
|
||||
return 510;
|
||||
|
@ -845,12 +845,14 @@ getvalue_t convert8bitsTelemValue(uint8_t channel, ls_telemetry_value_t value)
|
|||
break;
|
||||
case TELEM_CELL:
|
||||
case TELEM_HDG:
|
||||
case TELEM_ASPEED:
|
||||
case TELEM_MAX_ASPEED:
|
||||
case TELEM_SPEED:
|
||||
case TELEM_MAX_SPEED:
|
||||
result = value * 2;
|
||||
break;
|
||||
case TELEM_ASPEED:
|
||||
case TELEM_MAX_ASPEED:
|
||||
result = value * 20;
|
||||
break;
|
||||
case TELEM_DIST:
|
||||
case TELEM_MAX_DIST:
|
||||
result = value * 8;
|
||||
|
@ -1752,7 +1754,7 @@ PLAY_FUNCTION(playValue, uint8_t idx)
|
|||
|
||||
case MIXSRC_FIRST_TELEM+TELEM_ASPEED-1:
|
||||
case MIXSRC_FIRST_TELEM+TELEM_MAX_ASPEED-1:
|
||||
PLAY_NUMBER(val, 1+UNIT_KTS, 0);
|
||||
PLAY_NUMBER(val/10, 1+UNIT_KTS, 0);
|
||||
break;
|
||||
|
||||
case MIXSRC_FIRST_TELEM+TELEM_CONSUMPTION-1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue