Skip to content
Snippets Groups Projects
Commit af9a7a39 authored by Paul Riseborough's avatar Paul Riseborough Committed by Lorenz Meier
Browse files

ekf2: add handling of filter internal fault message

parent e8c34fa3
No related branches found
No related tags found
No related merge requests found
......@@ -732,6 +732,7 @@ void Ekf2::task_main()
_ekf.get_covariances(status.covariances);
_ekf.get_gps_check_status(&status.gps_check_fail_flags);
_ekf.get_control_mode(&status.control_mode_flags);
_ekf.get_filter_fault_status(&status.filter_fault_flags);
if (_estimator_status_pub == nullptr) {
_estimator_status_pub = orb_advertise(ORB_ID(estimator_status), &status);
......
......@@ -518,7 +518,7 @@ void Ekf2Replay::logIfUpdated()
memcpy(&(log_message.body.est0.s), est_status.states, maxcopy0);
log_message.body.est0.n_states = est_status.n_states;
log_message.body.est0.nan_flags = est_status.nan_flags;
log_message.body.est0.health_flags = est_status.health_flags;
log_message.body.est0.fault_flags = est_status.filter_fault_flags;
log_message.body.est0.timeout_flags = est_status.timeout_flags;
writeMessage(_write_fd, (void *)&log_message.head1, _formats[LOG_EST0_MSG].length);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment