mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-27 00:48:23 +08:00
simulation/gz_bridge: local_position_groundtruth include heading (#21224)
This commit is contained in:
@@ -555,6 +555,8 @@ void GZBridge::poseInfoCallback(const gz::msgs::Pose_V &pose)
|
||||
local_position_groundtruth.y = position(1);
|
||||
local_position_groundtruth.z = position(2);
|
||||
|
||||
local_position_groundtruth.heading = euler.psi();
|
||||
|
||||
local_position_groundtruth.ref_lat = _pos_ref.getProjectionReferenceLat(); // Reference point latitude in degrees
|
||||
local_position_groundtruth.ref_lon = _pos_ref.getProjectionReferenceLon(); // Reference point longitude in degrees
|
||||
local_position_groundtruth.ref_alt = _param_sim_home_alt.get();
|
||||
|
||||
Reference in New Issue
Block a user