mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
- remove drivers/gps set clock callback - drivers/gps try to set sensor_gps timestamp_sample as closely as possible - move mavlink timesync to new lib/timesync library - sensors/vehicle_gps_position consume all sensor_gps sources and determine time GPS utc time offset using lib/timesync - once time offset is stable update system clock if sufficiently different
18 lines
537 B
Plaintext
18 lines
537 B
Plaintext
uint64 timestamp # time since system start (microseconds)
|
|
|
|
uint8 SOURCE_UNKNOWN = 0
|
|
uint8 SOURCE_PROTOCOL_MAVLINK = 1
|
|
uint8 SOURCE_PROTOCOL_RTPS = 2
|
|
uint8 SOURCE_GPS1 = 3
|
|
uint8 SOURCE_GPS2 = 4
|
|
uint8 source # timesync source
|
|
|
|
int64 observed_offset # raw time offset directly observed from this timesync packet (microseconds)
|
|
int64 estimated_offset # smoothed time offset between companion system and PX4 (microseconds)
|
|
|
|
uint64 deviation
|
|
|
|
int32 sequence
|
|
|
|
bool converged
|