Switched from strptime to sscanf, added command line switch to set system clock and fixed typo
Signed-off-by: Thomas Hogge <[email protected]>
ugps: Simplify and fix position computation from GPRMC sentence
Current code parses following GPRMC
$GPRMC,071305.0,A,5207.76855,N,02104.022546,E,0.0,,270816,0.0,E,A*18
as
position: 52.117947 21.67042
with this fix it's being parsed correctly as
position: 52.129475 21.067041
Fixes https://github.com/lede-project/source/issues/279
Signed-off-by: Petr Štetiar <[email protected]>
Tested-by: Cezary Jackiewicz <[email protected]>
Allow bigger lat/lng numbers in RMC message
It works now with following message:
$GPRMC,122536.0,A,4350.237769,N,01826.423315
Signed-off-by: Petr Štetiar <[email protected]>
Show more useful error message if we can't open GPS device
Signed-off-by: Petr Štetiar <[email protected]>
Fix typo in error message
Signed-off-by: Petr Štetiar <[email protected]>
Use strsep for NMEA message tokenization
strtok doesn't parse correctly following message:
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
Resulting in "datagram has wrong parameter count".
Signed-off-by: Petr Štetiar <[email protected]>
Bail out if we can't find GPS device
Signed-off-by: Petr Štetiar <[email protected]>
Switch to ulog for logging and add few commandline params
Signed-off-by: Petr Štetiar <[email protected]>
cmake: Add proper library and include files search logic for dependecies
Signed-off-by: Petr Štetiar <[email protected]>
lat/lng format when printing is incorrect
Signed-off-by: Maurice-Jörg Nießen <[email protected]>