mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 12:43:34 +08:00
Fixedwing: Enable loiter mode, tested in HIL
This commit is contained in:
@@ -711,7 +711,7 @@ FixedwingPositionControl::control_position(const math::Vector2f ¤t_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);
|
||||
|
||||
Reference in New Issue
Block a user