AP_Proximity: polyfence valid() has been renamed

This commit is contained in:
Peter Barker 2019-09-16 15:24:46 +10:00 committed by Randy Mackay
parent 714a3e2462
commit a0c6ff95e4
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ void AP_Proximity_SITL::update(void)
if (!AP::fence()->polyfence().breached()) {
// only called to prompt polyfence to reload fence if required
}
if (AP::fence()->polyfence().valid()) {
if (AP::fence()->polyfence().inclusion_boundary_available()) {
// update distance in one sector
if (get_distance_to_fence(_sector_middle_deg[last_sector], _distance[last_sector])) {
set_status(AP_Proximity::Proximity_Good);
@ -73,7 +73,7 @@ void AP_Proximity_SITL::update(void)
// get distance in meters to fence in a particular direction in degrees (0 is forward, angles increase in the clockwise direction)
bool AP_Proximity_SITL::get_distance_to_fence(float angle_deg, float &distance) const
{
if (!AP::fence()->polyfence().valid()) {
if (!AP::fence()->polyfence().inclusion_boundary_available()) {
return false;
}