Skip to content

Commit

Permalink
make clang-tidy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Oct 18, 2023
1 parent 54e5dd7 commit f59592a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/ekf2/EKF/mag_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ void Ekf::resetMagStates(const Vector3f &mag, bool reset_heading)
_state.mag_B = mag - (R_to_body * mag_earth_pred);

ECL_INFO("resetMagStates using yaw estimator");
} else
#endif // CONFIG_EKF2_GNSS

} else if (!reset_heading && _control_status.flags.yaw_align) {
#else
if (!reset_heading && _control_status.flags.yaw_align) {
#endif
// mag_B: reset using WMM
const Dcmf R_to_body = quatToInverseRotMat(_state.quat_nominal);
_state.mag_B = mag - (R_to_body * mag_earth_pred);
Expand Down

0 comments on commit f59592a

Please sign in to comment.