Browse Source

Add reserved type, fixes #4466 (#4476)

* Add reserved type, fixes #4466

* Additional reserved vtol types added to is_vtol
sbg
Sander Smeets 9 years ago committed by Lorenz Meier
parent
commit
1815b47fbf
  1. 6
      src/modules/commander/commander_helper.cpp

6
src/modules/commander/commander_helper.cpp

@ -94,7 +94,11 @@ bool is_rotary_wing(const struct vehicle_status_s *current_status) @@ -94,7 +94,11 @@ 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 == MAV_TYPE_VTOL_DUOROTOR ||
current_status->system_type == MAV_TYPE_VTOL_QUADROTOR ||
current_status->system_type == MAV_TYPE_VTOL_TILTROTOR);
current_status->system_type == MAV_TYPE_VTOL_TILTROTOR ||
current_status->system_type == MAV_TYPE_VTOL_RESERVED2 ||
current_status->system_type == MAV_TYPE_VTOL_RESERVED3 ||
current_status->system_type == MAV_TYPE_VTOL_RESERVED4 ||
current_status->system_type == MAV_TYPE_VTOL_RESERVED5);
}
static hrt_abstime blink_msg_end = 0; // end time for currently blinking LED message, 0 if no blink message

Loading…
Cancel
Save