mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 03:33:34 +08:00
EKF: Use matrix library for quaternion to rotation matrix conversion
This commit is contained in:
committed by
Roman Bapst
parent
1a4ab069c9
commit
36de2b3dc1
@@ -395,7 +395,7 @@ bool Ekf::resetGpsAntYaw()
|
||||
_state_reset_status.quat_change = q_error;
|
||||
|
||||
// update transformation matrix from body to world frame using the current estimate
|
||||
_R_to_earth = quat_to_invrotmat(_state.quat_nominal);
|
||||
_R_to_earth = Dcmf(_state.quat_nominal);
|
||||
|
||||
// reset the rotation from the EV to EKF frame of reference if it is being used
|
||||
if ((_params.fusion_mode & MASK_ROTATE_EV) && (_params.fusion_mode & MASK_USE_EVPOS)) {
|
||||
|
||||
Reference in New Issue
Block a user