mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
GCS_MAVLink: correct consumption of ODOMETRY velocity
This commit is contained in:
parent
e9b8948ade
commit
6dbc4c657a
@ -3381,7 +3381,9 @@ void GCS_MAVLINK::handle_odometry(const mavlink_message_t &msg)
|
||||
const uint32_t timestamp_ms = correct_offboard_timestamp_usec_to_ms(m.time_usec, PAYLOAD_SIZE(chan, ODOMETRY));
|
||||
visual_odom->handle_vision_position_estimate(m.time_usec, timestamp_ms, m.x, m.y, m.z, q, posErr, angErr, m.reset_counter);
|
||||
|
||||
const Vector3f vel{m.vx, m.vy, m.vz};
|
||||
// convert velocity vector from FRD to NED frame
|
||||
Vector3f vel{m.vx, m.vy, m.vz};
|
||||
vel = q * vel;
|
||||
visual_odom->handle_vision_speed_estimate(m.time_usec, timestamp_ms, vel, m.reset_counter);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user