aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander/commander_helper.cpp
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-28 07:58:42 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-28 16:31:41 +0100
commit2d124852c1881d5b993b3c2ec9f7a79e1e03da1b (patch)
treee8ef94b9255f78418d4da12d206b024cb2abfcff /src/modules/commander/commander_helper.cpp
parent01835a51a8a3a0b0f7e7362cdc25475bd029a9a8 (diff)
downloadpx4-firmware-2d124852c1881d5b993b3c2ec9f7a79e1e03da1b.tar.gz
px4-firmware-2d124852c1881d5b993b3c2ec9f7a79e1e03da1b.tar.bz2
px4-firmware-2d124852c1881d5b993b3c2ec9f7a79e1e03da1b.zip
propagate uorb contants change through all modules/drivers
Diffstat (limited to 'src/modules/commander/commander_helper.cpp')
-rw-r--r--src/modules/commander/commander_helper.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/commander/commander_helper.cpp b/src/modules/commander/commander_helper.cpp
index 2022e99fb..8a4451100 100644
--- a/src/modules/commander/commander_helper.cpp
+++ b/src/modules/commander/commander_helper.cpp
@@ -72,16 +72,16 @@ static const int ERROR = -1;
bool is_multirotor(const struct vehicle_status_s *current_status)
{
- return ((current_status->system_type == VEHICLE_TYPE_QUADROTOR) ||
- (current_status->system_type == VEHICLE_TYPE_HEXAROTOR) ||
- (current_status->system_type == VEHICLE_TYPE_OCTOROTOR) ||
- (current_status->system_type == VEHICLE_TYPE_TRICOPTER));
+ return ((current_status->system_type == vehicle_status_s::VEHICLE_TYPE_QUADROTOR) ||
+ (current_status->system_type == vehicle_status_s::VEHICLE_TYPE_HEXAROTOR) ||
+ (current_status->system_type == vehicle_status_s::VEHICLE_TYPE_OCTOROTOR) ||
+ (current_status->system_type == vehicle_status_s::VEHICLE_TYPE_TRICOPTER));
}
bool is_rotary_wing(const struct vehicle_status_s *current_status)
{
- return is_multirotor(current_status) || (current_status->system_type == VEHICLE_TYPE_HELICOPTER)
- || (current_status->system_type == VEHICLE_TYPE_COAXIAL);
+ return is_multirotor(current_status) || (current_status->system_type == vehicle_status_s::VEHICLE_TYPE_HELICOPTER)
+ || (current_status->system_type == vehicle_status_s::VEHICLE_TYPE_COAXIAL);
}
static int buzzer = -1;