mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Plane: simulator sets is_crashed
due to zero-ish vibration in SITL, the is_flying check thinks you're not flying, and this thinks you crashed. This is a SITL specific problem but it brings to light that *if* someone actually had a very low vibration aircraft we don't want to crash them. So, the vibe test has been removed for now. A better test is a variance on the accel
This commit is contained in:
parent
6caea9e07c
commit
e1d566f9e7
@ -23,11 +23,7 @@ void Plane::update_is_flying_5Hz(void)
|
||||
// airspeed at least 75% of stall speed?
|
||||
bool airspeed_movement = ahrs.airspeed_estimate(&aspeed) && (aspeed >= (aparm.airspeed_min*0.75f));
|
||||
|
||||
if (ins.is_still()) {
|
||||
// if motionless, we can't possibly be flying. This is a very strict test
|
||||
is_flying_bool = false;
|
||||
}
|
||||
else if(arming.is_armed()) {
|
||||
if(arming.is_armed()) {
|
||||
// when armed assuming flying and we need overwhelming evidence that we ARE NOT flying
|
||||
|
||||
// short drop-outs of GPS are common during flight due to banking which points the antenna in different directions
|
||||
|
Loading…
Reference in New Issue
Block a user