SKY9X-REVA removed as it doesn't even build since 2.2
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user