mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-15 04:20:35 +08:00
timesync: extend timesync_status message with protocol source field and enum
This commit is contained in:
@@ -141,6 +141,7 @@ MavlinkTimesync::handle_message(const mavlink_message_t *msg)
|
||||
timesync_status_s tsync_status{};
|
||||
|
||||
tsync_status.timestamp = hrt_absolute_time();
|
||||
tsync_status.source_protocol = timesync_status_s::SOURCE_PROTOCOL_MAVLINK;
|
||||
tsync_status.remote_timestamp = tsync.tc1 / 1000ULL;
|
||||
tsync_status.observed_offset = offset_us;
|
||||
tsync_status.estimated_offset = (int64_t)_time_offset;
|
||||
|
||||
Reference in New Issue
Block a user