From 56aea87959284d00e071405ef419307562339529 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Thu, 13 Feb 2014 20:06:53 +0100 Subject: [PATCH] use uas.type instead of uas.airframe to determine if system is rotarywing or fixedwing --- src/uas/UAS.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 62fbbadfa..b182098b0 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -2180,7 +2180,7 @@ void UAS::readParametersFromStorage() bool UAS::isRotaryWing() { - switch (airframe) { + switch (type) { case MAV_TYPE_QUADROTOR: /* fallthrough */ case MAV_TYPE_COAXIAL: @@ -2196,7 +2196,7 @@ bool UAS::isRotaryWing() bool UAS::isFixedWing() { - switch (airframe) { + switch (type) { case MAV_TYPE_FIXED_WING: return true; default: -- 2.22.0