forked from Archive/PX4-Autopilot
EKF: Ensure filter control modes are correctly initialised
This commit is contained in:
parent
9f3b1351f7
commit
c23d72ba29
|
@ -84,8 +84,6 @@ Ekf::Ekf():
|
|||
_rng_hgt_faulty(false),
|
||||
_baro_hgt_offset(0.0f)
|
||||
{
|
||||
_control_status = {};
|
||||
_control_status_prev = {};
|
||||
_state = {};
|
||||
_last_known_posNE.setZero();
|
||||
_earth_rate_NED.setZero();
|
||||
|
@ -156,6 +154,9 @@ bool Ekf::init(uint64_t timestamp)
|
|||
_filter_initialised = false;
|
||||
_terrain_initialised = false;
|
||||
|
||||
_control_status.value = 0;
|
||||
_control_status_prev.value = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue