mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 01:33:34 +08:00
mavlink: timesync: readd timesync_status uORB to report Mavlink timesync
This commit is contained in:
@@ -169,10 +169,10 @@ bool RtpsTopics::getMsg(const uint8_t topic_ID, eprosima::fastcdr::Cdr &scdr)
|
||||
// apply timestamp offset
|
||||
_timesync->addOffset(msg.timestamp());
|
||||
msg.serialize(scdr);
|
||||
ret = true;
|
||||
@[ if topic == 'Timesync' or topic == 'timesync']@
|
||||
}
|
||||
@[ end if]@
|
||||
ret = true;
|
||||
_@(topic)_sub.unlockMsg();
|
||||
}
|
||||
break;
|
||||
|
||||
+5
-10
@@ -1,10 +1,5 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
uint8 sys_id # id of the origin system
|
||||
uint8 seq # timesync msg sequence
|
||||
int64 tc1 # time sync timestamp 1
|
||||
int64 ts1 # time sync timestamp 2
|
||||
|
||||
uint64 remote_timestamp # remote system timestamp (microseconds)
|
||||
int64 observed_offset # raw time offset directly observed from this timesync packet (microseconds)
|
||||
int64 estimated_offset # smoothed time offset between companion system and PX4 (microseconds)
|
||||
uint32 round_trip_time # round trip time of this timesync packet (microseconds)
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
uint8 sys_id # id of the origin system
|
||||
uint8 seq # timesync msg sequence
|
||||
int64 tc1 # time sync timestamp 1
|
||||
int64 ts1 # time sync timestamp 2
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
uint64 remote_timestamp # remote system timestamp (microseconds)
|
||||
int64 observed_offset # raw time offset directly observed from this timesync packet (microseconds)
|
||||
int64 estimated_offset # smoothed time offset between companion system and PX4 (microseconds)
|
||||
uint32 round_trip_time # round trip time of this timesync packet (microseconds)
|
||||
@@ -291,6 +291,8 @@ rtps:
|
||||
id: 129
|
||||
- msg: vehicle_trajectory_bezier
|
||||
id: 130
|
||||
- msg: timesync_status
|
||||
id: 131
|
||||
########## multi topics: begin ##########
|
||||
- msg: actuator_controls_0
|
||||
id: 150
|
||||
|
||||
Reference in New Issue
Block a user