mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
MavlinkTimeSync: Specify compid & Sysid (#25949)
Co-authored-by: henrykotze <henry@autonosky.com> Co-authored-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
This commit is contained in:
parent
70f32f4631
commit
25138d0a12
@ -65,6 +65,8 @@ MavlinkTimesync::handle_message(const mavlink_message_t *msg)
|
||||
|
||||
rsync.tc1 = now * 1000ULL;
|
||||
rsync.ts1 = tsync.ts1;
|
||||
rsync.target_component = msg->compid;
|
||||
rsync.target_system = msg->sysid;
|
||||
|
||||
mavlink_msg_timesync_send_struct(_mavlink.get_channel(), &rsync);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user