mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
AirSpeed now in Knots (and converted to km/h and mph according to Tx
settings). Tests needed (LCD and audio)
This commit is contained in:
parent
560cd8f619
commit
506bc9b6ae
3 changed files with 10 additions and 1 deletions
|
@ -1249,6 +1249,10 @@ void putsTelemetryChannel(xcoord_t x, uint8_t y, uint8_t channel, lcdint_t val,
|
|||
putsTelemetryValue(x, y, div10_and_round(val), UNIT_RAW, att|PREC1);
|
||||
break;
|
||||
|
||||
case TELEM_ASPD-1:
|
||||
putsTelemetryValue(x, y, val, UNIT_KTS, att);
|
||||
break;
|
||||
|
||||
#if defined(CPUARM)
|
||||
case TELEM_SWR-1:
|
||||
#endif
|
||||
|
|
|
@ -3314,10 +3314,13 @@ PLAY_FUNCTION(playValue, uint8_t idx)
|
|||
break;
|
||||
|
||||
case MIXSRC_FIRST_TELEM+TELEM_VSPD-1:
|
||||
case MIXSRC_FIRST_TELEM+TELEM_ASPD-1:
|
||||
PLAY_NUMBER(div10_and_round(val), 1+UNIT_METERS_PER_SECOND, PREC1);
|
||||
break;
|
||||
|
||||
case MIXSRC_FIRST_TELEM+TELEM_ASPD-1:
|
||||
PLAY_NUMBER(val, 1+UNIT_KTS, 0);
|
||||
break;
|
||||
|
||||
case MIXSRC_FIRST_TELEM+TELEM_CONSUMPTION-1:
|
||||
PLAY_NUMBER(val, 1+UNIT_MAH, 0);
|
||||
break;
|
||||
|
|
|
@ -791,6 +791,8 @@ void resetTelemetry()
|
|||
frskyData.hub.gpsSpeed_bp = 100;
|
||||
frskyData.hub.gpsSpeed_ap = 50;
|
||||
|
||||
frskyData.hub.airSpeed = 100;
|
||||
|
||||
frskyData.hub.cellsCount = 6;
|
||||
|
||||
frskyData.hub.baroAltitudeOffset = 500 * 100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue