mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 09:04:06 +08:00
Proper zero init of the filter
This commit is contained in:
parent
fd34a8432e
commit
9c5dbeef3a
@ -2711,6 +2711,8 @@ void AttPosEKF::ZeroVariables()
|
||||
states[i] = 0.0f; // state matrix
|
||||
}
|
||||
|
||||
correctedDelAng.zero();
|
||||
|
||||
for (unsigned i = 0; i < data_buffer_size; i++) {
|
||||
|
||||
for (unsigned j = 0; j < n_states; j++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user