mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
navigator: in start_loiter set _pos_sp_triplet.current.type to SETPOINT_TYPE_LOITER instead of SETPOINT_TYPE_NORMAL
This commit is contained in:
@@ -1078,7 +1078,7 @@ Navigator::start_loiter()
|
|||||||
mavlink_log_info(_mavlink_fd, "[navigator] loiter at current altitude");
|
mavlink_log_info(_mavlink_fd, "[navigator] loiter at current altitude");
|
||||||
}
|
}
|
||||||
|
|
||||||
_pos_sp_triplet.current.type = SETPOINT_TYPE_NORMAL;
|
_pos_sp_triplet.current.type = SETPOINT_TYPE_LOITER;
|
||||||
}
|
}
|
||||||
|
|
||||||
_pos_sp_triplet.current.loiter_radius = _parameters.loiter_radius;
|
_pos_sp_triplet.current.loiter_radius = _parameters.loiter_radius;
|
||||||
|
|||||||
Reference in New Issue
Block a user