SKY9X-REVA removed as it doesn't even build since 2.2

This commit is contained in:
Bertrand Songis
2019-05-19 17:33:14 +02:00
parent 5883bb53ea
commit 0ec34fd72c
19 changed files with 81 additions and 351 deletions
+2 -10
View File
@@ -355,19 +355,11 @@ void TelemetryItem::eval(const TelemetrySensor & sensor)
}
}
uint32_t angle = abs(gpsItem.gps.latitude - gpsItem.pilotLatitude);
#if defined(PCBSKY9X) //TODO remove when sky9x issue is understood
uint32_t dist = (PRECALCULATED_EARTH_RADIUS_CONSTANT * angle) / 1000000;
#else
uint32_t dist = ((uint64_t)PRECALCULATED_EARTH_RADIUS_CONSTANT * angle) / 1000000;
#endif
uint32_t dist = uint64_t(EARTH_RADIUS * M_PI / 180) * angle / 1000000;
uint32_t result = dist * dist;
angle = abs(gpsItem.gps.longitude - gpsItem.pilotLongitude);
#if defined(PCBSKY9X)
dist = (gpsItem.distFromEarthAxis * angle) / 1000000;
#else
dist = ((uint64_t)gpsItem.distFromEarthAxis * angle) / 1000000;
#endif
dist = uint64_t(gpsItem.distFromEarthAxis) * angle / 1000000;
result += dist * dist;
// Length on ground (ignoring curvature of the earth)