[NV14] Telemetry fixes, use FlySky RX defaults (#856)

* Port from NV14 repository

* Fix altimeter

* Change AFHDS2A default mode to PWM and iBUS

* Fix datacopy.cpp generation for NV14 Windows build

* Cleanup

* Format

* typo fix

* Sngl for alarm and temperature sensor

* remove temperature sensor
This commit is contained in:
eshifri
2021-10-15 10:18:03 +11:00
committed by GitHub
parent a62545a674
commit b1a41438a3
8 changed files with 213 additions and 146 deletions
+12
View File
@@ -133,6 +133,12 @@ inline const char* getRssiLabel()
if (telemetryProtocol == PROTOCOL_TELEMETRY_GHOST) {
return "RQly";
}
#endif
#if defined (PCBNV14)
extern uint32_t NV14internalModuleFwVersion;
if ( (telemetryProtocol == PROTOCOL_TELEMETRY_FLYSKY_NV14)
&& (NV14internalModuleFwVersion >= 0x1000E) )
return "Sgnl";
#endif
return "RSSI";
}
@@ -174,6 +180,12 @@ inline uint8_t modelTelemetryProtocol()
}
#endif
#if defined(AFHDS2)
if (isModuleAFHDS2A(INTERNAL_MODULE)) {
return PROTOCOL_TELEMETRY_FLYSKY_NV14;
}
#endif
// default choice
return PROTOCOL_TELEMETRY_FRSKY_SPORT;
}