mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 16:51:16 +08:00
ekf2: add vehicle_local_position dist_bottom_var
This commit is contained in:
1 parent
3e3b886b5d
commit
5d08b97fd7
2 files changed
+2
No files matched your search
@@ -1643,6 +1643,7 @@ void EKF2::PublishLocalPosition(const hrt_abstime ×tamp)
|
||||
#if defined(CONFIG_EKF2_TERRAIN)
|
||||
// Distance to bottom surface (ground) in meters, must be positive
|
||||
lpos.dist_bottom = math::max(_ekf.getHagl(), 0.f);
|
||||
lpos.dist_bottom_var = _ekf.getTerrainVariance();
|
||||
lpos.dist_bottom_valid = _ekf.isTerrainEstimateValid();
|
||||
|
||||
lpos.dist_bottom_sensor_bitfield = vehicle_local_position_s::DIST_BOTTOM_SENSOR_NONE;
|
||||
|
||||
Reference in new issue
Block a user