mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 06:03:34 +08:00
Added slave time sync suppression, which allows to use slave and master on the same node. Shall be documented later.
This commit is contained in:
@@ -18,7 +18,10 @@ void GlobalTimeSyncSlave::adjustFromMsg(const ReceivedDataStructure<protocol::Gl
|
||||
static_cast<long long>(adjustment.toUSec()),
|
||||
int(msg.getSrcNodeID().get()), int(msg.getIfaceIndex()));
|
||||
|
||||
getSystemClock().adjustUtc(adjustment);
|
||||
if (!suppressed_)
|
||||
{
|
||||
getSystemClock().adjustUtc(adjustment);
|
||||
}
|
||||
last_adjustment_ts_ = msg.getMonotonicTimestamp();
|
||||
state_ = Update;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user