mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 01:33:34 +08:00
ekf2: move estimator_sensor_bias publication to method
- only publish if there's a change in bias - publish current estimated mag bias, including saved mag bias
This commit is contained in:
@@ -138,6 +138,7 @@ private:
|
||||
void PublishEkfDriftMetrics(const hrt_abstime ×tamp);
|
||||
void PublishOpticalFlowVel(const hrt_abstime ×tamp, const optical_flow_s &optical_flow);
|
||||
void PublishOdometry(const hrt_abstime ×tamp, const imuSample &imu);
|
||||
void PublishSensorBias(const hrt_abstime ×tamp);
|
||||
void PublishWindEstimate(const hrt_abstime ×tamp);
|
||||
void PublishYawEstimatorStatus(const hrt_abstime ×tamp);
|
||||
|
||||
@@ -191,6 +192,10 @@ private:
|
||||
|
||||
Vector3f _last_local_position_for_gpos{};
|
||||
|
||||
Vector3f _last_accel_bias{};
|
||||
Vector3f _last_gyro_bias{};
|
||||
Vector3f _last_mag_bias{};
|
||||
|
||||
uORB::Subscription _airdata_sub{ORB_ID(vehicle_air_data)};
|
||||
uORB::Subscription _airspeed_sub{ORB_ID(airspeed)};
|
||||
uORB::Subscription _ev_odom_sub{ORB_ID(vehicle_visual_odometry)};
|
||||
|
||||
Reference in New Issue
Block a user