Telemetry now coming
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user