Skip to main content

rosflight_c_gnss_timestamp

Function rosflight_c_gnss_timestamp 

Source
pub fn rosflight_c_gnss_timestamp(
    pps_timestamp_us: u64,
    completion_timestamp_us: u64,
    utc_nanos: i32,
    time_and_fix_valid: bool,
) -> u64
Expand description

Match ROSflight C’s GNSS validity timestamp: use the receiver’s signed UTC fractional second relative to the latest PPS edge, or estimate measurement time as 22 ms before packet completion when PPS/time validity is unavailable.