diff --git a/src/modules/ekf2/EKF2.cpp b/src/modules/ekf2/EKF2.cpp index 115ce80b1fb1..fe545be42823 100644 --- a/src/modules/ekf2/EKF2.cpp +++ b/src/modules/ekf2/EKF2.cpp @@ -1265,6 +1265,14 @@ void EKF2::SendEvents() _ekf.clear_information_events(); } + + if (_ekf.control_status_flags().yaw_align && !_ekf.control_status_prev_flags().yaw_align) { + /* EVENT + * @group ekf2 + */ + events::send(events::ID("ekf2_yaw_align"), events::Log::Debug, + "EKF2({1}): yaw aligned", _instance); + } } void EKF2::PublishGlobalPosition(const hrt_abstime ×tamp)