mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 04:11:36 +08:00
[uxrce_dds_client] wait for Timesync to converge
Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
This commit is contained in:
committed by
Daniel Agar
parent
f01400de81
commit
2363c03bfe
@@ -106,13 +106,6 @@ public:
|
||||
|
||||
int64_t offset() const { return (int64_t)_time_offset; }
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* Online exponential filter to smooth time offset
|
||||
*/
|
||||
void add_sample(int64_t offset_us);
|
||||
|
||||
/**
|
||||
* Return true if the timesync algorithm converged to a good estimate,
|
||||
* return false otherwise
|
||||
@@ -124,6 +117,13 @@ private:
|
||||
*/
|
||||
void reset_filter();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* Online exponential filter to smooth time offset
|
||||
*/
|
||||
void add_sample(int64_t offset_us);
|
||||
uORB::PublicationMulti<timesync_status_s> _timesync_status_pub{ORB_ID(timesync_status)};
|
||||
|
||||
uint32_t _sequence{0};
|
||||
|
||||
Reference in New Issue
Block a user