mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_DAL: correct error path in max_distance_cm_orient
This commit is contained in:
parent
eb790c6c0b
commit
db9228ea3e
@ -53,7 +53,7 @@ int16_t AP_DAL_RangeFinder::max_distance_cm_orient(enum Rotation orientation) co
|
|||||||
const auto *rangefinder = AP::rangefinder();
|
const auto *rangefinder = AP::rangefinder();
|
||||||
// the EKF only asks for this from a specific orientation. Thankfully.
|
// the EKF only asks for this from a specific orientation. Thankfully.
|
||||||
INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
|
INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
|
||||||
return rangefinder->ground_clearance_cm_orient(orientation);
|
return rangefinder->max_distance_cm_orient(orientation);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user