[uxrce_dds_client] wait for Timesync to converge

Signed-off-by: Beniamino Pozzan <beniamino.pozzan@gmail.com>
This commit is contained in:
Beniamino Pozzan
2023-11-27 21:10:26 -05:00
committed by Daniel Agar
parent f01400de81
commit 2363c03bfe
2 changed files with 10 additions and 9 deletions
+7 -7
View File
@@ -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};