1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00

Merge branch 'master' of https://github.com/RomanLut/inav into submit-gps-fix-estimation

This commit is contained in:
Roman Lut 2023-04-05 10:15:54 +02:00
commit 0fb2c1edc8
391 changed files with 150969 additions and 1669 deletions

View file

@ -679,7 +679,9 @@ bool isFixedWingFlying(void)
{
float airspeed = 0.0f;
#ifdef USE_PITOT
airspeed = getAirspeedEstimate();
if (sensors(SENSOR_PITOT) && pitotIsHealthy()) {
airspeed = getAirspeedEstimate();
}
#endif
bool throttleCondition = getMotorCount() == 0 || rcCommand[THROTTLE] > currentBatteryProfile->nav.fw.cruise_throttle;
bool velCondition = posControl.actualState.velXY > 250.0f || airspeed > 250.0f;