mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Changed navigator to properly separate xy and z distance to waypoint
This commit is contained in:
parent
6816f2a4ce
commit
2ca40bfc65
@ -312,7 +312,7 @@ MissionBlock::is_mission_item_reached()
|
||||
|
||||
}
|
||||
|
||||
if (dist >= 0.0f && dist <= mission_acceptance_radius
|
||||
if (dist_xy >= 0.0f && dist_xy <= mission_acceptance_radius
|
||||
&& dist_z <= _navigator->get_altitude_acceptance_radius()) {
|
||||
_waypoint_position_reached = true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user