Skip to content

Commit

Permalink
Changed navigator to properly separate xy and z distance to waypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Scott authored and julianoes committed Jun 13, 2019
1 parent 6816f2a commit 2ca40bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/navigator/mission_block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2ca40bf

Please sign in to comment.