Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding EKF align flag #65

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions msg/SbgEkfStatus.msg
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ bool gps2_hdt_used

# True if Odometer is used in solution (data used and valid since 3s)
bool odo_used

# True if solution ekf is aligned (data used and valid since 4 mns)
bool ekf_aligned
1 change: 1 addition & 0 deletions src/message_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const sbg_driver::SbgEkfStatus MessageWrapper::createEkfStatusMessage(uint32_t e
ekf_status_message.gps2_hdt_used = (ekf_status & SBG_ECOM_SOL_GPS2_HDT_USED) != 0;

ekf_status_message.odo_used = (ekf_status & SBG_ECOM_SOL_ODO_USED) != 0;
ekf_status_message.ekf_aligned = (ekf_status & SBG_ECOM_SOL_ALIGN_VALID) != 0;

return ekf_status_message;
}
Expand Down