mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 13:33:33 +08:00
Fixed time synchronization master: publishing to all ifaces with the same Transfer ID
This commit is contained in:
@@ -37,16 +37,19 @@ class GlobalTimeSyncMaster : protected LoopbackFrameListenerBase
|
||||
|
||||
void setTxTimestamp(UtcTime ts);
|
||||
|
||||
int publish();
|
||||
int publish(TransferID tid, MonotonicTime current_time);
|
||||
};
|
||||
|
||||
INode& node_;
|
||||
LazyConstructor<IfaceMaster> iface_masters_[MaxCanIfaces];
|
||||
MonotonicTime prev_pub_mono_;
|
||||
DataTypeID dtid_;
|
||||
bool initialized_;
|
||||
|
||||
void handleLoopbackFrame(const RxFrame& frame);
|
||||
|
||||
int getNextTransferID(TransferID& tid);
|
||||
|
||||
public:
|
||||
explicit GlobalTimeSyncMaster(INode& node)
|
||||
: LoopbackFrameListenerBase(node.getDispatcher())
|
||||
|
||||
Reference in New Issue
Block a user