mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 15:13:34 +08:00
GlobalTimeSyncSlave Transfer ID and timing validation (not tested)
This commit is contained in:
@@ -24,6 +24,7 @@ class GlobalTimeSyncSlave : Noncopyable
|
||||
MonotonicTime last_adjustment_ts_;
|
||||
enum State { Update, Adjust } state_;
|
||||
NodeID master_nid_;
|
||||
TransferID prev_tid_;
|
||||
uint8_t prev_iface_index_;
|
||||
|
||||
ISystemClock& getSystemClock() const { return sub_.getNode().getSystemClock(); }
|
||||
@@ -48,6 +49,8 @@ public:
|
||||
bool isActive() const;
|
||||
|
||||
NodeID getMasterNodeID() const;
|
||||
|
||||
MonotonicTime getLastAdjustmentTime() const { return last_adjustment_ts_; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user