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