mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 04:53:34 +08:00
ekf2: publish GPS check status
This commit is contained in:
committed by
Lorenz Meier
parent
ba5d608cad
commit
07eb4feed8
@@ -729,7 +729,7 @@ void Ekf2::task_main()
|
|||||||
status.timestamp = hrt_absolute_time();
|
status.timestamp = hrt_absolute_time();
|
||||||
_ekf->get_state_delayed(status.states);
|
_ekf->get_state_delayed(status.states);
|
||||||
_ekf->get_covariances(status.covariances);
|
_ekf->get_covariances(status.covariances);
|
||||||
//status.gps_check_fail_flags = _ekf->_gps_check_fail_status.value;
|
_ekf->get_gps_check_status(&status.gps_check_fail_flags);
|
||||||
|
|
||||||
if (_estimator_status_pub == nullptr) {
|
if (_estimator_status_pub == nullptr) {
|
||||||
_estimator_status_pub = orb_advertise(ORB_ID(estimator_status), &status);
|
_estimator_status_pub = orb_advertise(ORB_ID(estimator_status), &status);
|
||||||
|
|||||||
Reference in New Issue
Block a user