aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Bapst <romanbapst@yahoo.de>2015-04-27 14:25:26 +0200
committerLorenz Meier <lm@inf.ethz.ch>2015-04-27 22:22:52 +0200
commitbd1c3363df44170523c68fd87ee19f2582a5e8fc (patch)
tree7bf56e57c71bcfedc47a7af9be4bab290beb21da /src
parent06352bee62e96da5c3225ab091d5c1e1777742b3 (diff)
downloadpx4-firmware-bd1c3363df44170523c68fd87ee19f2582a5e8fc.tar.gz
px4-firmware-bd1c3363df44170523c68fd87ee19f2582a5e8fc.tar.bz2
px4-firmware-bd1c3363df44170523c68fd87ee19f2582a5e8fc.zip
added new vtol mav types
Diffstat (limited to 'src')
-rw-r--r--src/modules/commander/commander_helper.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/commander/commander_helper.cpp b/src/modules/commander/commander_helper.cpp
index 5f735b7b7..99b926be4 100644
--- a/src/modules/commander/commander_helper.cpp
+++ b/src/modules/commander/commander_helper.cpp
@@ -85,8 +85,10 @@ bool is_rotary_wing(const struct vehicle_status_s *current_status)
}
bool is_vtol(const struct vehicle_status_s * current_status) {
- return current_status->system_type == vehicle_status_s::VEHICLE_TYPE_VTOL_DUOROTOR ||
- current_status->system_type == vehicle_status_s::VEHICLE_TYPE_VTOL_QUADROTOR;
+ return (current_status->system_type == vehicle_status_s::VEHICLE_TYPE_VTOL_DUOROTOR ||
+ current_status->system_type == vehicle_status_s::VEHICLE_TYPE_VTOL_QUADROTOR ||
+ current_status->system_type == vehicle_status_s::VEHICLE_TYPE_VTOL_HEXAROTOR ||
+ current_status->system_type == vehicle_status_s::VEHICLE_TYPE_VTOL_OCTOROTOR);
}
static int buzzer = -1;