mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 20:43:34 +08:00
EKF: fix the rotation direction of the buffered attitude solutions
in alignOutputFilter() Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
This commit is contained in:
committed by
Paul Riseborough
parent
56b6b7a778
commit
78122b20a6
+1
-1
@@ -379,7 +379,7 @@ void Ekf::resetHeight()
|
||||
void Ekf::alignOutputFilter()
|
||||
{
|
||||
// calculate the quaternion delta between the output and EKF quaternions at the EKF fusion time horizon
|
||||
Quatf q_delta = _state.quat_nominal.inversed() * _output_sample_delayed.quat_nominal;
|
||||
Quatf q_delta = _state.quat_nominal * _output_sample_delayed.quat_nominal.inversed();
|
||||
q_delta.normalize();
|
||||
|
||||
// calculate the velocity and posiiton deltas between the output and EKF at the EKF fusion time horizon
|
||||
|
||||
Reference in New Issue
Block a user