mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
APMrover2: adjust for Location_Class and Location unification
This commit is contained in:
parent
9deee2a805
commit
4e94d5c0ce
@ -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…
Reference in New Issue
Block a user