forked from Archive/PX4-Autopilot
EKF: update all output states when aligning output time horizon filter
This commit is contained in:
parent
3bd9415498
commit
1e6c6f2d3c
|
@ -353,9 +353,7 @@ void Ekf::alignOutputFilter()
|
|||
_output_buffer[i].pos += pos_delta;
|
||||
}
|
||||
|
||||
_output_new.quat_nominal = q_delta * _output_new.quat_nominal;
|
||||
_output_new.quat_nominal.normalize();
|
||||
// TODO: what about vel and pos of _output_new, shouldn't they be aligned too?
|
||||
_output_new = _output_buffer.get_newest();
|
||||
}
|
||||
|
||||
// Do a forced re-alignment of the yaw angle to align with the horizontal velocity vector from the GPS.
|
||||
|
|
Loading…
Reference in New Issue