Fixedwing: Enable loiter mode, tested in HIL

This commit is contained in:
Julian Oes
2013-11-06 23:11:14 +01:00
parent 9894751442
commit c75c5a5f30
2 changed files with 3 additions and 2 deletions
@@ -711,7 +711,7 @@ FixedwingPositionControl::control_position(const math::Vector2f &current_positio
_tecs.set_speed_weight(_parameters.speed_weight);
/* execute navigation once we have a setpoint */
if (_setpoint_valid) {
if (_setpoint_valid && _control_mode.flag_control_auto_enabled) {
/* current waypoint (the one currently heading for) */
math::Vector2f curr_wp(global_triplet.current.lat / 1e7f, global_triplet.current.lon / 1e7f);