Skip to content

Commit

Permalink
EKF2: send event when yaw gets aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
bresch committed Nov 27, 2024
1 parent 1af2f12 commit 170215a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/modules/ekf2/EKF2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 &timestamp)
Expand Down

0 comments on commit 170215a

Please sign in to comment.