mirror of https://github.com/ArduPilot/ardupilot
SITL: fixed gimbal simulator for recent MAVLink2 changes
This commit is contained in:
parent
145ab1d626
commit
027788f72b
|
@ -288,7 +288,11 @@ void Gimbal::send_report(void)
|
|||
&msg, &gimbal_report);
|
||||
chan0_status->current_tx_seq = saved_seq;
|
||||
|
||||
mav_socket.send(&msg.magic, len);
|
||||
uint8_t msgbuf[len];
|
||||
len = mavlink_msg_to_send_buffer(msgbuf, &msg);
|
||||
if (len > 0) {
|
||||
mav_socket.send(msgbuf, len);
|
||||
}
|
||||
|
||||
delta_velocity.zero();
|
||||
delta_angle.zero();
|
||||
|
|
Loading…
Reference in New Issue