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:
Henry Kotzé 2025-11-20 07:43:46 -05:00 committed by GitHub
parent 70f32f4631
commit 25138d0a12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);