gps.time.to.utc: Convert GPS time to UTC time

Description Usage Arguments Value Examples

View source: R/ardupilot_log_functions.R

Description

GPStimeToUTC converts GPS time in weeks and milliseconds to UTC time

Usage

1
gps.time.to.utc(GPSweek, GPSms, hrsDiff = 0, leapsec = 17)

Arguments

GPSweek

GPS week number - ardupilot log GPS message parameter (GWk)

GPSms

GPS time in milliseconds - ardupilot log GPS message parameter (GMS) -

hrsDiff

May set time difference in hours to UTC time of your location

leapsec

Time correction between GPS and UTC time in seconds

Value

Time in UTC time unless included hours difference argument

Examples

1
2
3
4
5
gps_week <- 1923
gps_seconds <- 381765
gps_milliseconds <- gps_seconds * 1000
utc_time <- GPStimeToUTC(gps_week, gps_milliseconds)
utc_time

jngtz/rdupilot documentation built on Oct. 3, 2020, 12:45 a.m.