forked from Archive/PX4-Autopilot
ekf: access member variable without getter
This commit is contained in:
parent
904bf8ef9f
commit
f96287b80a
|
@ -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:
|
||||
|
|
|
@ -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…
Reference in New Issue