Plane: changed arm check method to use new is_flying code

This commit is contained in:
Tom Pittenger 2015-02-18 14:52:52 -08:00 committed by Andrew Tridgell
parent 58b0702793
commit 8f7bb61a54

View File

@ -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);
}