Browse Source

AP_DAL: correct error path in max_distance_cm_orient

apm_2208
Peter Barker 3 years ago committed by Peter Barker
parent
commit
db9228ea3e
  1. 2
      libraries/AP_DAL/AP_DAL_RangeFinder.cpp

2
libraries/AP_DAL/AP_DAL_RangeFinder.cpp

@ -53,7 +53,7 @@ int16_t AP_DAL_RangeFinder::max_distance_cm_orient(enum Rotation orientation) co @@ -53,7 +53,7 @@ int16_t AP_DAL_RangeFinder::max_distance_cm_orient(enum Rotation orientation) co
const auto *rangefinder = AP::rangefinder();
// the EKF only asks for this from a specific orientation. Thankfully.
INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
return rangefinder->ground_clearance_cm_orient(orientation);
return rangefinder->max_distance_cm_orient(orientation);
}
#endif

Loading…
Cancel
Save