/*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/AP_Rally_config.h>1617#if HAL_RALLY_ENABLED1819#include <AP_Common/Location.h>2021#include "Copter.h"2223#include "AP_Rally.h"2425bool AP_Rally_Copter::is_valid(const Location &rally_point) const26{27#if AP_FENCE_ENABLED28if (!copter.fence.check_destination_within_fence(rally_point)) {29return false;30}31#endif32return true;33}3435#endif // HAL_RALLY_ENABLED363738