mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 17:55:19 +03:00
More telemetry units. GPS screen rewritten.
This commit is contained in:
parent
209589ccc7
commit
f2126a8aa6
12 changed files with 84 additions and 68 deletions
|
@ -56,6 +56,7 @@ struct FrskyAlarm frskyAlarms[4];
|
|||
#if defined(FRSKY_HUB) || defined(WS_HOW_HIGH)
|
||||
FrskyHubData frskyHubData;
|
||||
int16_t baroAltitudeOffset = 0;
|
||||
uint8_t maxGpsSpeed = 0;
|
||||
#endif
|
||||
|
||||
void frskyPushValue(uint8_t *&ptr, uint8_t value)
|
||||
|
@ -150,6 +151,9 @@ void parseTelemHubByte(uint8_t byte)
|
|||
return;
|
||||
}
|
||||
((uint8_t*)&frskyHubData)[structPos+1] = byte;
|
||||
if (structPos == offsetof(FrskyHubData, gpsSpeed_ap)/2 && maxGpsSpeed < frskyHubData.gpsSpeed_ap)
|
||||
maxGpsSpeed = frskyHubData.gpsSpeed_ap;
|
||||
|
||||
state = TS_IDLE;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue