Remove SKY9X target
This commit is contained in:
committed by
Peter Feerick
parent
5601bd53b2
commit
09c49e24ee
@@ -23,10 +23,6 @@
|
||||
|
||||
void processFrskyTelemetryData(uint8_t data)
|
||||
{
|
||||
#if defined(PCBSKY9X) && defined(BLUETOOTH)
|
||||
// TODO if (g_model.bt_telemetry)
|
||||
btPushByte(data);
|
||||
#endif
|
||||
|
||||
#if defined(AUX_SERIAL)
|
||||
if (g_eeGeneral.auxSerialMode == UART_MODE_TELEMETRY_MIRROR) {
|
||||
|
||||
@@ -420,7 +420,7 @@ void telemetryInit(uint8_t protocol)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(AUX_SERIAL) || defined(PCBSKY9X)
|
||||
#if defined(AUX_SERIAL)
|
||||
else if (protocol == PROTOCOL_TELEMETRY_FRSKY_D_SECONDARY) {
|
||||
telemetryPortInit(0, TELEMETRY_SERIAL_DEFAULT);
|
||||
auxSerialTelemetryInit(PROTOCOL_TELEMETRY_FRSKY_D_SECONDARY);
|
||||
@@ -448,14 +448,6 @@ void telemetryInit(uint8_t protocol)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(REVX) && !defined(SIMU)
|
||||
if (serialInversion) {
|
||||
setMFP();
|
||||
}
|
||||
else {
|
||||
clearMFP();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -372,20 +372,11 @@ void TelemetryItem::eval(const TelemetrySensor & sensor)
|
||||
}
|
||||
}
|
||||
uint32_t angle = abs(gpsItem.gps.latitude - gpsItem.pilotLatitude);
|
||||
#if defined(STM32)
|
||||
uint32_t dist = uint64_t(EARTH_RADIUS * M_PI / 180) * angle / 1000000;
|
||||
#else
|
||||
// TODO search later why it breaks Sky9x
|
||||
uint32_t dist = EARTH_RADIUS * angle / 1000000;
|
||||
#endif
|
||||
uint32_t result = dist * dist;
|
||||
|
||||
angle = abs(gpsItem.gps.longitude - gpsItem.pilotLongitude);
|
||||
#if defined(STM32)
|
||||
dist = uint64_t(gpsItem.distFromEarthAxis) * angle / 1000000;
|
||||
#else
|
||||
dist = gpsItem.distFromEarthAxis * angle / 1000000;
|
||||
#endif
|
||||
result += dist * dist;
|
||||
|
||||
// Length on ground (ignoring curvature of the earth)
|
||||
|
||||
Reference in New Issue
Block a user