mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 20:31:39 +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();
|
_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)
|
void EKF2::PublishGlobalPosition(const hrt_abstime ×tamp)
|
||||||
|
|||||||
Reference in New Issue
Block a user