mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user