Lines Matching full:gps
2 * ntp_calgps.c - calendar for GPS/GNSS based clocks
9 * This module implements stuff often used with GPS/GNSS receivers
48 * GPS calendar functions
265 * Given a calendar date, zap it into a GPS time format and then convert
275 TGpsDatum gps; in gpsntp_from_calendar_ex() local
276 gps = gpscal_from_calendar_ex(jd, fofs, warp); in gpsntp_from_calendar_ex()
277 return gpsntp_from_gpscal_ex(&gps, FALSE); in gpsntp_from_calendar_ex()
343 * API functions GPS week calendar
382 * Given a calendar date, zap it into a GPS time format and the do a
383 * proper era mapping in the GPS time scale, based on the GPS base date,
389 * This is a fail-safe against GPS receivers with an unknown starting
408 TGpsDatum gps; in gpscal_from_calendar_ex() local
430 /* Rebase to days after the GPS epoch. 'days' is positive here, in gpscal_from_calendar_ex()
431 * but it might be less than the GPS epoch start. Depending on in gpscal_from_calendar_ex()
438 /* simply shift to days since GPS epoch */ in gpscal_from_calendar_ex()
449 /* A very bad date before the GPS epoch. There's not in gpscal_from_calendar_ex()
466 * starting with the GPS base day set in the calendar. in gpscal_from_calendar_ex()
468 gps.weeks = week + GPSNTP_WSHIFT; in gpscal_from_calendar_ex()
469 gps.wsecs = days * SECSPERDAY + ntpcal_date_to_daysec(&cal); in gpscal_from_calendar_ex()
470 gps.frac = 0; in gpscal_from_calendar_ex()
471 gpscal_add_offset(&gps, fofs); in gpscal_from_calendar_ex()
472 return warp ? _gpscal_fix_gps_era(&gps) : gps; in gpscal_from_calendar_ex()
495 * based on the GPS base date derived from the build date (default) or
498 * !NOTE! This function takes RAW GPS weeks, aligned to the GPS start