APMrover2: adjust for Location_Class and Location unification

This commit is contained in:
Peter Barker 2019-01-02 13:54:19 +11:00 committed by Peter Barker
parent 9deee2a805
commit 4e94d5c0ce

View File

@ -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;