mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 00:53:34 +08:00
DSDL update
This commit is contained in:
+1
-1
Submodule dsdl updated: 78b3a2f23c...ffaeb85095
@@ -82,7 +82,8 @@ class UAVCAN_EXPORT GlobalTimeSyncSlave : Noncopyable
|
||||
|
||||
const bool needs_init = !master_nid_.isValid() || prev_ts_mono_.isZero();
|
||||
const bool switch_master = msg.getSrcNodeID() < master_nid_;
|
||||
const bool pub_timeout = since_prev_msg.toMSec() > protocol::GlobalTimeSync::PUBLISHER_TIMEOUT_MS;
|
||||
// TODO: Make configurable
|
||||
const bool pub_timeout = since_prev_msg.toMSec() > protocol::GlobalTimeSync::RECOMMENDED_PUBLISHER_TIMEOUT_MS;
|
||||
|
||||
if (switch_master || pub_timeout || needs_init)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user