AC_Avoid: adjust for proximity status namespace change

This commit is contained in:
Peter Barker 2019-09-27 18:59:19 +10:00 committed by Randy Mackay
parent 6f6b143929
commit 0d624785f3
1 changed files with 2 additions and 2 deletions

View File

@ -690,7 +690,7 @@ void AC_Avoid::adjust_velocity_proximity(float kP, float accel_cmss, Vector2f &d
AP_Proximity &_proximity = *proximity;
if (_proximity.get_status() != AP_Proximity::Proximity_Good) {
if (_proximity.get_status() != AP_Proximity::Status::Good) {
return;
}
@ -858,7 +858,7 @@ void AC_Avoid::get_proximity_roll_pitch_pct(float &roll_positive, float &roll_ne
AP_Proximity &_proximity = *proximity;
// exit immediately if proximity sensor is not present
if (_proximity.get_status() != AP_Proximity::Proximity_Good) {
if (_proximity.get_status() != AP_Proximity::Status::Good) {
return;
}