/*1This program is free software: you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation, either version 3 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program. If not, see <http://www.gnu.org/licenses/>.13*/1415#include "AP_Rally.h"1617#if HAL_RALLY_ENABLED1819#include "Rover.h"2021#include <AP_Common/Location.h>2223bool AP_Rally_Rover::is_valid(const Location &rally_point) const24{25#if AP_FENCE_ENABLED26if (!rover.fence.check_destination_within_fence(rally_point)) {27return false;28}29#endif30return true;31}3233#endif // HAL_RALLY_ENABLED343536