mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 01:51:36 +08:00
navigator: mission_block relax yaw acceptance if heading not good for control
This commit is contained in:
@@ -367,7 +367,8 @@ MissionBlock::is_mission_item_reached()
|
||||
|
||||
/* accept yaw if reached or if timeout is set in which case we ignore not forced headings */
|
||||
if (fabsf(yaw_err) < _navigator->get_yaw_threshold()
|
||||
|| (_navigator->get_yaw_timeout() >= FLT_EPSILON && !_mission_item.force_heading)) {
|
||||
|| (_navigator->get_yaw_timeout() >= FLT_EPSILON && !_mission_item.force_heading)
|
||||
|| !_navigator->get_local_position()->heading_good_for_control) {
|
||||
|
||||
_waypoint_yaw_reached = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user