mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 08:03:34 +08:00
ekf2: do not store delayed baro sample in class
the sample is popped from the buffer and directly used; there is no need to keep a local copy of it
This commit is contained in:
@@ -769,7 +769,7 @@ void EKF2::PublishBaroBias(const hrt_abstime ×tamp)
|
||||
const BiasEstimator::status &status = _ekf.getBaroBiasEstimatorStatus();
|
||||
|
||||
if (fabsf(status.bias - _last_baro_bias_published) > 0.001f) {
|
||||
_estimator_baro_bias_pub.publish(fillEstimatorBiasMsg(status, _ekf.get_baro_sample_delayed().time_us, timestamp,
|
||||
_estimator_baro_bias_pub.publish(fillEstimatorBiasMsg(status, _ekf.aid_src_baro_hgt().timestamp_sample, timestamp,
|
||||
_device_id_baro));
|
||||
|
||||
_last_baro_bias_published = status.bias;
|
||||
|
||||
Reference in New Issue
Block a user