mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-10 16:58:53 +08:00
EKF2: send event when yaw gets aligned
This commit is contained in:
@@ -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<int32_t>(events::ID("ekf2_yaw_align"), events::Log::Debug,
|
||||
"EKF2({1}): yaw aligned", _instance);
|
||||
}
|
||||
}
|
||||
|
||||
void EKF2::PublishGlobalPosition(const hrt_abstime ×tamp)
|
||||
|
||||
Reference in New Issue
Block a user