Browse Source

APMrover2: adjust for Location_Class and Location unification

master
Peter Barker 6 years ago committed by Peter Barker
parent
commit
4e94d5c0ce
  1. 3
      APMrover2/AP_Rally.cpp

3
APMrover2/AP_Rally.cpp

@ -21,8 +21,7 @@ @@ -21,8 +21,7 @@
bool AP_Rally_Rover::is_valid(const Location &rally_point) const
{
Location_Class rally_loc(rally_point);
if (!rover.g2.fence.check_destination_within_fence(rally_loc)) {
if (!rover.g2.fence.check_destination_within_fence(rally_point)) {
return false;
}
return true;

Loading…
Cancel
Save