ekf: access member variable without getter

This commit is contained in:
bresch 2022-03-16 13:57:44 +01:00 committed by Mathieu Bresciani
parent 904bf8ef9f
commit f96287b80a
2 changed files with 1 additions and 2 deletions

View File

@ -828,7 +828,7 @@ void Ekf::checkVerticalAccelerationHealth()
void Ekf::controlHeightFusion()
{
checkRangeAidSuitability();
const bool do_range_aid = (_params.range_aid == 1) && isRangeAidSuitable();
const bool do_range_aid = (_params.range_aid == 1) && _is_range_aid_suitable;
switch (_params.vdist_sensor_type) {
default:

View File

@ -899,7 +899,6 @@ private:
// determine if flight condition is suitable to use range finder instead of the primary height sensor
void checkRangeAidSuitability();
bool isRangeAidSuitable() const { return _is_range_aid_suitable; }
// set control flags to use baro height
void setControlBaroHeight();