Plane: changed arm check method to use new is_flying code
This commit is contained in:
parent
58b0702793
commit
8f7bb61a54
@ -1561,7 +1561,7 @@ static void determine_is_flying(void)
|
||||
gps.ground_speed() >= 5);
|
||||
|
||||
|
||||
if(ahrs.get_armed()) {
|
||||
if(arming.is_armed()) {
|
||||
// when armed, we need overwhelming evidence that we ARE NOT flying
|
||||
isFlyingBool = airspeedMovement || gpsMovement;
|
||||
|
||||
@ -1576,7 +1576,7 @@ static void determine_is_flying(void)
|
||||
|
||||
static bool is_flying(void)
|
||||
{
|
||||
if(ahrs.get_armed()) {
|
||||
if(arming.is_armed()) {
|
||||
// when armed, assume we're flying unless we probably aren't
|
||||
return (isFlyingProbability >= 0.1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user