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:
commit
0fb2c1edc8
391 changed files with 150969 additions and 1669 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue