EKF: update comment

This commit is contained in:
CarlOlsson 2019-05-21 11:30:40 +02:00 committed by Paul Riseborough
parent 7612fa40ed
commit d6351bd7a5
1 changed files with 2 additions and 2 deletions

View File

@ -509,7 +509,7 @@ bool Ekf::realignYawGPS()
_state_reset_status.quat_change = quat_before_reset.inversed() * _state.quat_nominal;
// add the reset amount to the output observer buffered data
// Note q1 *= q2 is equivalent to q1 = q2 * q1
// Note q1 *= q2 is equivalent to q1 = q1 * q2
for (uint8_t i = 0; i < _output_buffer.get_length(); i++) {
_output_buffer[i].quat_nominal *= _state_reset_status.quat_change;
}
@ -750,7 +750,7 @@ bool Ekf::resetMagHeading(Vector3f &mag_init, bool increase_yaw_var, bool update
if (update_buffer) {
// add the reset amount to the output observer buffered data
for (uint8_t i = 0; i < _output_buffer.get_length(); i++) {
// Note q1 *= q2 is equivalent to q1 = q2 * q1
// Note q1 *= q2 is equivalent to q1 = q1 * q2
_output_buffer[i].quat_nominal *= _state_reset_status.quat_change;
}