1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

Telemetry now coming

This commit is contained in:
Bertrand Songis 2019-02-22 17:17:13 +01:00
parent 6cfd65a538
commit 58190570f5
2 changed files with 10 additions and 1 deletions

View file

@ -30,7 +30,7 @@
#define PXX2_TYPE_ID_BIND 0x02
#define PXX2_TYPE_ID_CHANNELS 0x03
#define PXX2_TYPE_ID_RX_SETUP 0x05
#define PXX2_TYPE_ID_SPORT 0xFE
#define PXX2_TYPE_ID_TELEMETRY 0xFE
#define PXX2_TYPE_C_POWER_METER 0x02
#define PXX2_TYPE_ID_POWER_METER 0x01

View file

@ -121,6 +121,11 @@ void processBindFrame(uint8_t module, uint8_t * frame)
}
}
void processTelemetryFrame(uint8_t module, uint8_t * frame)
{
sportProcessTelemetryPacketWithoutCrc(&frame[2]);
}
void processSpectrumFrame(uint8_t module, uint8_t * frame)
{
if (moduleSettings[module].mode != MODULE_MODE_SPECTRUM_ANALYSER) {
@ -153,6 +158,10 @@ void processRadioFrame(uint8_t module, uint8_t * frame)
case PXX2_TYPE_ID_BIND:
processBindFrame(module, frame);
break;
case PXX2_TYPE_ID_TELEMETRY:
processTelemetryFrame(module, frame);
break;
}
}