Browse Source

EKF: Also update the newest and oldest quaternion estimate in

alignOutputFilter()

Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
master
CarlOlsson 6 years ago committed by Paul Riseborough
parent
commit
6cf512f103
  1. 6
      EKF/ekf_helper.cpp

6
EKF/ekf_helper.cpp

@ -394,6 +394,12 @@ void Ekf::alignOutputFilter() @@ -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…
Cancel
Save