From 9fe1d40186c3753c1a300b81e1cd39c8cee95340 Mon Sep 17 00:00:00 2001 From: Nuno Goncalves Date: Mon, 20 Jun 2016 15:39:11 +0100 Subject: [PATCH 2/3] TSIP: fix time offset Signed-off-by: Nuno Goncalves --- driver_tsip.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/driver_tsip.c b/driver_tsip.c index 3ded926..f397271 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -1128,8 +1128,11 @@ static void tsip_mode(struct gps_device_t *session, int mode) #ifdef TIMEHINT_ENABLE static double tsip_time_offset(struct gps_device_t *session UNUSED) { - /* FIX-ME: is a constant offset right here? */ - return 0.075; + /* the offset depends on the generation and is not reliable, some example measurements: + * Trimble Resolution T : 0.03s to 0.200s (depends on the SV# being tracked) + * Trimble Resolution SMTx: 0.300 to 0.500s (unpredictable) + * Trimble RES SMT 360 : 0.028s (this appears very stable)*/ + return 0.0; } #endif /* TIMEHINT_ENABLE */ -- 2.7.4