mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:03:35 +08:00
ekf_att_pos_estimator: publish placeholder values for accuracy reporting
This commit is contained in:
committed by
Lorenz Meier
parent
68c1ffd3e5
commit
3680057e6d
@@ -954,6 +954,12 @@ void AttitudePositionEstimatorEKF::publishLocalPosition()
|
||||
_local_pos.v_z_valid = true;
|
||||
_local_pos.xy_global = _gps_initialized; //TODO: Handle optical flow mode here
|
||||
|
||||
// TODO provide calculated values for these
|
||||
_local_pos.eph = 0.0f;
|
||||
_local_pos.epv = 0.0f;
|
||||
_local_pos.evh = 0.0f;
|
||||
_local_pos.evv = 0.0f;
|
||||
|
||||
_local_pos.z_global = false;
|
||||
matrix::Eulerf euler = matrix::Quatf(_ekf->states[0], _ekf->states[1], _ekf->states[2], _ekf->states[3]);
|
||||
_local_pos.yaw = euler.psi();
|
||||
@@ -1054,6 +1060,10 @@ void AttitudePositionEstimatorEKF::publishGlobalPosition()
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO provide calculated values for these
|
||||
_global_pos.evh = 0.0f;
|
||||
_global_pos.evv = 0.0f;
|
||||
|
||||
/* lazily publish the global position only once available */
|
||||
if (_global_pos_pub != nullptr) {
|
||||
/* publish the global position */
|
||||
|
||||
Reference in New Issue
Block a user