X7 POC for R9 region sensing

This commit is contained in:
3djc
2018-12-12 13:27:11 +01:00
parent edc3d7372e
commit 22c1d5895a
18 changed files with 48 additions and 19 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ void processFrskyPXX2Data(uint8_t data)
R9ModuleStreaming = TELEMETRY_TIMEOUT10ms; // reset counter only if valid packets are being detected
uint8_t R9Region = (telemetryRxBuffer[3] & 0x30) >> 4;
if (R9Region != 0x04) {
BF_SET(g_model.moduleData[EXTERNAL_MODULE].subType, R9Region, 1, 2); // heading bit holds flex frequency
BF_SET(g_model.moduleData[EXTERNAL_MODULE].subType, R9Region, 0, 2); // heading bit holds flex frequency
}
if (telemetryRxBuffer[2] & 0x80) {
createFrSkyPXX2Sensor(RSSI_ID, telemetryRxBuffer[2] & 0x7f);