From 52d151db798013bc5218afb9b71ee3aa398d336d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 4 Dec 2009 12:42:36 +0000 Subject: This commit resolves the time overflows in the rgm3800 and mkt3301. These were causing port problems on systems with 32-bit time. It turns out the problem was with the assumption that these devices always deliver a valid time in $GPRMC. They don't when the navigation warning bit (second field 'V') is on! The NMEA driver now knows. Also, the code now contains a sanity check - it will log a complaint if it sees a date moere than a year in the future. This invariably indicates some driver-level problem with time extraction. --- test/daemon/iTrek.log.chk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/daemon/iTrek.log.chk') diff --git a/test/daemon/iTrek.log.chk b/test/daemon/iTrek.log.chk index 63dc160c..3e2f3d4b 100644 --- a/test/daemon/iTrek.log.chk +++ b/test/daemon/iTrek.log.chk @@ -1,15 +1,20 @@ $GPRMC,151605.053,V,,,,,,,260705,,*29 $GPRMC,151606.055,V,,,,,,,260705,,*2C -{"class":"TPV","tag":"RMC","time":1122390966.055,"ept":0.005} $GPGSA,A,1,,,,*32 $GPGSA,A,3,09,05,14,26,,,,,,,,,2.9,2.2,1.9*3C +{"class":"TPV","tag":"GSA","epv":43.700,"mode":3} $GPGSA,A,3,09,05,14,26,,,,,,,,,2.9,2.2,1.9*3C +{"class":"TPV","tag":"GSA","epv":43.700,"mode":3} $GPGSA,A,3,09,05,14,26,,,,,,,,,2.9,2.2,1.9*3C +{"class":"TPV","tag":"GSA","epv":43.700,"mode":3} $GPGSA,A,3,09,05,14,26,,,,,,,,,2.9,2.2,1.9*3C +{"class":"TPV","tag":"GSA","epv":43.700,"mode":3} $GPGSA,A,3,09,05,14,26,,,,,,,,,2.9,2.2,1.9*3C +{"class":"TPV","tag":"GSA","epv":43.700,"mode":3} $GPRMC,045849.000,A,3519.9048,N,13640.2631,E,0.10,92.17,270705,,*31 {"class":"TPV","tag":"RMC","time":1122440329.000,"ept":0.005,"lat":35.331746667,"lon":136.671051667,"track":92.1700,"speed":0.051,"mode":2} $GPGSA,A,3,09,05,14,26,,,,,,,,,2.9,2.2,1.9*3C +{"class":"TPV","tag":"GSA","time":1122440329.000,"ept":0.005,"lat":35.331746667,"lon":136.671051667,"epv":43.700,"track":92.1700,"speed":0.051,"mode":3} $GPRMC,045850.000,A,3519.9047,N,13640.2631,E,0.11,99.12,270705,,*39 {"class":"TPV","tag":"RMC","time":1122440330.000,"ept":0.005,"lat":35.331745000,"lon":136.671051667,"track":99.1200,"speed":0.057,"mode":2} $GPGGA,045851.000,3519.9046,N,13640.2631,E,1,04,2.2,80.4,M,,,,0000*39 -- cgit v1.2.1