mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Telemetry now coming
This commit is contained in:
parent
6cfd65a538
commit
58190570f5
2 changed files with 10 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
||||||
#define PXX2_TYPE_ID_BIND 0x02
|
#define PXX2_TYPE_ID_BIND 0x02
|
||||||
#define PXX2_TYPE_ID_CHANNELS 0x03
|
#define PXX2_TYPE_ID_CHANNELS 0x03
|
||||||
#define PXX2_TYPE_ID_RX_SETUP 0x05
|
#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_C_POWER_METER 0x02
|
||||||
#define PXX2_TYPE_ID_POWER_METER 0x01
|
#define PXX2_TYPE_ID_POWER_METER 0x01
|
||||||
|
|
|
@ -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)
|
void processSpectrumFrame(uint8_t module, uint8_t * frame)
|
||||||
{
|
{
|
||||||
if (moduleSettings[module].mode != MODULE_MODE_SPECTRUM_ANALYSER) {
|
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:
|
case PXX2_TYPE_ID_BIND:
|
||||||
processBindFrame(module, frame);
|
processBindFrame(module, frame);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PXX2_TYPE_ID_TELEMETRY:
|
||||||
|
processTelemetryFrame(module, frame);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue