mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 14:03:33 +08:00
vehicle_local_position: rename yaw -> heading and add reset logic
- vehicle_global_position yaw removed (redundant)
This commit is contained in:
committed by
Mathieu Bresciani
parent
33fb9d0c62
commit
97fc1db768
@@ -2600,7 +2600,7 @@ MavlinkReceiver::handle_message_hil_state_quaternion(mavlink_message_t *msg)
|
||||
hil_local_pos.vz = hil_state.vz / 100.0f;
|
||||
|
||||
matrix::Eulerf euler{matrix::Quatf(hil_state.attitude_quaternion)};
|
||||
hil_local_pos.yaw = euler.psi();
|
||||
hil_local_pos.heading = euler.psi();
|
||||
hil_local_pos.xy_global = true;
|
||||
hil_local_pos.z_global = true;
|
||||
hil_local_pos.vxy_max = INFINITY;
|
||||
|
||||
Reference in New Issue
Block a user