mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
EKF: Also update the newest and oldest quaternion estimate in
alignOutputFilter() Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
This commit is contained in:
parent
78122b20a6
commit
6cf512f103
@ -394,6 +394,12 @@ void Ekf::alignOutputFilter()
|
||||
_output_buffer[i].vel += vel_delta;
|
||||
_output_buffer[i].pos += pos_delta;
|
||||
}
|
||||
|
||||
_output_new.quat_nominal *= q_delta;
|
||||
_output_new.quat_nominal.normalize();
|
||||
|
||||
_output_sample_delayed.quat_nominal *= q_delta;
|
||||
_output_sample_delayed.quat_nominal.normalize();
|
||||
}
|
||||
|
||||
// Do a forced re-alignment of the yaw angle to align with the horizontal velocity vector from the GPS.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user