Commit 56aea879 authored by Thomas Gubler's avatar Thomas Gubler

use uas.type instead of uas.airframe to determine if system is rotarywing or fixedwing

parent 07900e84
...@@ -2180,7 +2180,7 @@ void UAS::readParametersFromStorage() ...@@ -2180,7 +2180,7 @@ void UAS::readParametersFromStorage()
bool UAS::isRotaryWing() bool UAS::isRotaryWing()
{ {
switch (airframe) { switch (type) {
case MAV_TYPE_QUADROTOR: case MAV_TYPE_QUADROTOR:
/* fallthrough */ /* fallthrough */
case MAV_TYPE_COAXIAL: case MAV_TYPE_COAXIAL:
...@@ -2196,7 +2196,7 @@ bool UAS::isRotaryWing() ...@@ -2196,7 +2196,7 @@ bool UAS::isRotaryWing()
bool UAS::isFixedWing() bool UAS::isFixedWing()
{ {
switch (airframe) { switch (type) {
case MAV_TYPE_FIXED_WING: case MAV_TYPE_FIXED_WING:
return true; return true;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment