diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-10 07:39:12 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-06-10 07:39:12 +0200 |
commit | 1028bd932cfd08366dd0dcb8c189ebcf88cce53a (patch) | |
tree | 96ce17feaa2e3cca97493e782534c5eb01f3a11f /src/modules/commander/state_machine_helper.c | |
parent | 8b67f88331a9dc65e5c947da177701317d77f8bd (diff) | |
download | px4-firmware-1028bd932cfd08366dd0dcb8c189ebcf88cce53a.tar.gz px4-firmware-1028bd932cfd08366dd0dcb8c189ebcf88cce53a.tar.bz2 px4-firmware-1028bd932cfd08366dd0dcb8c189ebcf88cce53a.zip |
Extended vehicle detection
Diffstat (limited to 'src/modules/commander/state_machine_helper.c')
-rw-r--r-- | src/modules/commander/state_machine_helper.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/commander/state_machine_helper.c b/src/modules/commander/state_machine_helper.c index e18c0edc3..0a6cfd0b5 100644 --- a/src/modules/commander/state_machine_helper.c +++ b/src/modules/commander/state_machine_helper.c @@ -70,12 +70,14 @@ 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_OCTOROTOR) || + (current_status->system_type == VEHICLE_TYPE_TRICOPTER)); } bool is_rotary_wing(const struct vehicle_status_s *current_status) { - return is_multirotor(current_status); + return is_multirotor(current_status) || (current_status->system_type == VEHICLE_TYPE_HELICOPTER) + || (current_status->system_type == VEHICLE_TYPE_COAXIAL); } /** |