SIM_Vicon: label fields going into VISION_SPEED_ESTIMATE packets

This commit is contained in:
Peter Barker 2024-03-07 13:56:57 +11:00 committed by Andrew Tridgell
parent c12bb6720a
commit 8c9ed697fe

View File

@ -207,10 +207,10 @@ void Vicon::update_vicon_position_estimate(const Location &loc,
// send vision speed estimate
if (should_send(ViconTypeMask::VISION_SPEED_ESTIMATE) && get_free_msg_buf_index(msg_buf_index)) {
const mavlink_vision_speed_estimate_t vicon_speed_estimate{
now_us + time_offset_us,
vel_corrected.x,
vel_corrected.y,
vel_corrected.z
usec: now_us + time_offset_us,
x: vel_corrected.x,
y: vel_corrected.y,
z: vel_corrected.z
};
mavlink_msg_vision_speed_estimate_encode_status(
system_id,