Closed wonjae-song closed 1 year ago
I want to sync time between agent and client using time sync callback. step1> call time-sync-API(rmw_uros_sync_session) every X sec
compute average of time offset using callback function to get more stable time-offset.
time-offset is overwritten everytime the time-sync-API(rmw_uros_sync_session) is called.
N/A
rmw_uros_sync_session is designed to be called once to adjust the clock drift between client and agent. It won't compute an average with the actual design. Feel free to contribute with improvements via PRs.
rmw_uros_sync_session
Issue template
Steps to reproduce the issue
I want to sync time between agent and client using time sync callback. step1> call time-sync-API(rmw_uros_sync_session) every X sec
Expected behavior
compute average of time offset using callback function to get more stable time-offset.
Actual behavior
time-offset is overwritten everytime the time-sync-API(rmw_uros_sync_session) is called.
Additional information
N/A