vehicle_status delete engine_failure_cmd

This commit is contained in:
Daniel Agar
2017-12-20 18:01:27 -05:00
committed by Lorenz Meier
parent 17e17d79dd
commit fc7c8b4b89
5 changed files with 5 additions and 23 deletions
@@ -1786,7 +1786,7 @@ FixedwingPositionControl::tecs_update_pitch_throttle(float alt_sp, float airspee
_reinitialize_tecs = false;
}
if (_vehicle_status.engine_failure || _vehicle_status.engine_failure_cmd) {
if (_vehicle_status.engine_failure) {
/* Force the slow downwards spiral */
pitch_min_rad = M_DEG_TO_RAD_F * -1.0f;
pitch_max_rad = M_DEG_TO_RAD_F * 5.0f;