1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

GPS distance algorithm. To be used later.

This commit is contained in:
bsongis 2012-02-09 22:56:09 +00:00
parent f93bca77ce
commit 8aee92218d
3 changed files with 84 additions and 9 deletions

View file

@ -419,7 +419,9 @@ void menuMainView(uint8_t event)
}
}
#ifdef FRSKY_HUB
// Cells voltage
// TODO only display used cells!
lcd_putsLeft( 5*FH-3, PSTR("V1=\004V2=\004V3=")) ;
lcd_putsLeft( 6*FH-3, PSTR("V4=\004V5=\004V6="));
{
@ -436,6 +438,7 @@ void menuMainView(uint8_t event)
x += 7*FW;
}
}
#endif
displayRssiLine();
}
@ -506,6 +509,9 @@ void menuMainView(uint8_t event)
#define ALTITUDE_LINE (4*FH-1)
lcd_putsLeft(ALTITUDE_LINE, STR_ALT);
putsTelemetryValue(4*FW, ALTITUDE_LINE, frskyHubData.gpsAltitude_bp, UNIT_METERS, LEFT); // before '.'
lcd_puts(12*FW, ALTITUDE_LINE, PSTR("Dst:"));
putsTelemetryValue(16*FW, ALTITUDE_LINE, getGpsDistance(), UNIT_METERS, LEFT); // before '.'
}
else if (g_model.frsky.usrProto == PROTO_FRSKY_HUB && view == e_telemetry+3*ALTERNATE_VIEW) {
// Temperature 1