forked from Archive/PX4-Autopilot
ekf2: update _R_to_earth when the state quat changed through fusion
This commit is contained in:
parent
28458340e6
commit
4dbdf23346
|
@ -856,6 +856,8 @@ void Ekf::fuse(const Vector24f &K, float innovation)
|
|||
{
|
||||
_state.quat_nominal -= K.slice<4, 1>(0, 0) * innovation;
|
||||
_state.quat_nominal.normalize();
|
||||
_R_to_earth = Dcmf(_state.quat_nominal);
|
||||
|
||||
_state.vel -= K.slice<3, 1>(4, 0) * innovation;
|
||||
_state.pos -= K.slice<3, 1>(7, 0) * innovation;
|
||||
_state.delta_ang_bias -= K.slice<3, 1>(10, 0) * innovation;
|
||||
|
|
Loading…
Reference in New Issue