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() @@ -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() @@ -2196,7 +2196,7 @@ bool UAS::isRotaryWing()
bool UAS::isFixedWing()
{
switch (airframe) {
switch (type) {
case MAV_TYPE_FIXED_WING:
return true;
default:

Loading…
Cancel
Save