Browse Source

ekf: access member variable without getter

v1.13.0-BW
bresch 3 years ago committed by Mathieu Bresciani
parent
commit
f96287b80a
  1. 2
      src/modules/ekf2/EKF/control.cpp
  2. 1
      src/modules/ekf2/EKF/ekf.h

2
src/modules/ekf2/EKF/control.cpp

@ -828,7 +828,7 @@ void Ekf::checkVerticalAccelerationHealth() @@ -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:

1
src/modules/ekf2/EKF/ekf.h

@ -899,7 +899,6 @@ private: @@ -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();

Loading…
Cancel
Save