Browse Source

AP_Proximity: polyfence valid() has been renamed

master
Peter Barker 5 years ago committed by Randy Mackay
parent
commit
a0c6ff95e4
  1. 4
      libraries/AP_Proximity/AP_Proximity_SITL.cpp

4
libraries/AP_Proximity/AP_Proximity_SITL.cpp

@ -51,7 +51,7 @@ void AP_Proximity_SITL::update(void) @@ -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) @@ -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;
}

Loading…
Cancel
Save