mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
ekf2: use yaw estimation of ekf for local position yaw value
This commit is contained in:
committed by
Lorenz Meier
parent
d33dbb8cbb
commit
e2901a7c2f
@@ -488,7 +488,7 @@ void Ekf2::task_main()
|
|||||||
lpos.ref_lon = ekf_origin.lon_rad * 180.0 / M_PI; // Reference point longitude in degrees
|
lpos.ref_lon = ekf_origin.lon_rad * 180.0 / M_PI; // Reference point longitude in degrees
|
||||||
|
|
||||||
// The rotation of the tangent plane vs. geographical north
|
// The rotation of the tangent plane vs. geographical north
|
||||||
lpos.yaw = 0.0f;
|
lpos.yaw = att.yaw;
|
||||||
|
|
||||||
lpos.dist_bottom = -pos[2] + lpos.ref_alt; // Distance to bottom surface (ground) in meters
|
lpos.dist_bottom = -pos[2] + lpos.ref_alt; // Distance to bottom surface (ground) in meters
|
||||||
lpos.dist_bottom_rate = -vel[2]; // Distance to bottom surface (ground) change rate
|
lpos.dist_bottom_rate = -vel[2]; // Distance to bottom surface (ground) change rate
|
||||||
|
|||||||
Reference in New Issue
Block a user