VTOL transition failsafe RTL

This commit is contained in:
sander
2016-02-10 16:30:57 +01:00
committed by Andreas Antener
parent 2fa7380246
commit d5eae460c0
8 changed files with 37 additions and 16 deletions
@@ -454,6 +454,7 @@ VtolAttitudeControl::abort_front_transition()
if(!_abort_front_transition) {
mavlink_log_critical(_mavlink_fd, "Front transition timeout occured, aborting");
_abort_front_transition = true;
_vtol_vehicle_status.vtol_transition_failsafe = true;
}
}
@@ -739,8 +740,8 @@ void VtolAttitudeControl::task_main()
/* Only publish if the proper mode(s) are enabled */
if (_v_control_mode.flag_control_attitude_enabled ||
_v_control_mode.flag_control_rates_enabled ||
_v_control_mode.flag_control_manual_enabled) {
_v_control_mode.flag_control_rates_enabled ||
_v_control_mode.flag_control_manual_enabled) {
if (_actuators_0_pub != nullptr) {
orb_publish(ORB_ID(actuator_controls_0), _actuators_0_pub, &_actuators_out_0);
+1 -1
View File
@@ -32,7 +32,7 @@
****************************************************************************/
/**
* @file airframe.cpp
* @file vtol_type.cpp
*
* @author Roman Bapst <bapstroman@gmail.com>
*
+1 -1
View File
@@ -32,7 +32,7 @@
****************************************************************************/
/**
* @file airframe.h
* @file vtol_type.h
*
* @author Roman Bapst <bapstroman@gmail.com>
*