mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 03:43:35 +08:00
navigator_main: add comment to explain yaw_acceptance usage
This commit is contained in:
@@ -962,6 +962,8 @@ Navigator::get_yaw_acceptance(float mission_item_yaw)
|
||||
|
||||
const position_controller_status_s &pos_ctrl_status = _position_controller_status_sub.get();
|
||||
|
||||
// if yaw_acceptance from position controller is NaN overwrite the mission item yaw such that
|
||||
// the waypoint can be reached from any direction
|
||||
if ((pos_ctrl_status.timestamp > _pos_sp_triplet.timestamp) && !PX4_ISFINITE(pos_ctrl_status.yaw_acceptance)) {
|
||||
yaw = pos_ctrl_status.yaw_acceptance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user