Browse Source

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

QGC4.4
Thomas Gubler 11 years ago
parent
commit
56aea87959
  1. 4
      src/uas/UAS.cc

4
src/uas/UAS.cc

@ -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()
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:

Loading…
Cancel
Save