mavsdk::System::TimesyncStatus Struct Reference ​
#include: system.hpp
Time synchronization state, see enable_timesync().
The autopilot's TIMESYNC clock (usually its time since boot) is: local time (std::chrono::system_clock) + offset_ns.
Incoming message timestamps are not changed, so use the offset to convert between the two clocks.
Data Fields ​
bool synced {false} - Whether the offset is valid.
int64_t offset_ns {0} - Autopilot time minus local time, in nanoseconds.
int64_t rtt_ns {0} - Round trip time of the last TIMESYNC, in nanoseconds.
Field Documentation ​
synced ​
cpp
bool mavsdk::System::TimesyncStatus::synced {false}Whether the offset is valid.
offset_ns ​
cpp
int64_t mavsdk::System::TimesyncStatus::offset_ns {0}Autopilot time minus local time, in nanoseconds.
rtt_ns ​
cpp
int64_t mavsdk::System::TimesyncStatus::rtt_ns {0}Round trip time of the last TIMESYNC, in nanoseconds.

