mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 04:53:34 +08:00
Navigator: yaw error from param and pos_ctl_status.acceptence_rad checks before using
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -391,7 +391,7 @@ MissionBlock::is_mission_item_reached()
|
||||
}
|
||||
|
||||
|
||||
if (fabsf(yaw_err) < 0.1f) { //accept heading for exit if below 0.1 rad error (5.7deg)
|
||||
if (fabsf(yaw_err) < _navigator->get_yaw_threshold()) {
|
||||
exit_heading_reached = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user