|
|
@@ -53,7 +53,7 @@ int handle_gps_time(float gtime, int date) {
|
|
|
int day,month,year;
|
|
|
int hour,min,sec,frac;
|
|
|
int n = 0;
|
|
|
- time_t utc,now;
|
|
|
+ time_t utc, now;
|
|
|
|
|
|
char buffer[32] = {0};
|
|
|
|
|
|
@@ -64,14 +64,12 @@ int handle_gps_time(float gtime, int date) {
|
|
|
day = month = year = 0;
|
|
|
hour = min = sec = frac = 0;
|
|
|
|
|
|
-
|
|
|
// Just to be *ahem* clear, as per NMEA standard the date is encoded DDMMYY, and the time of day
|
|
|
// is encoded HHMMSS[.frac] where there is an optional fractional second field denoted by a decimal point.
|
|
|
// we must be able to decode the fractional seconds field but we discard the information since it is not
|
|
|
// reliable enough to be worth the bother.
|
|
|
//
|
|
|
|
|
|
-
|
|
|
// Start out with zero parsed fields
|
|
|
//
|
|
|
n = 0;
|
|
|
@@ -353,12 +351,13 @@ int update_gps(char *in) {
|
|
|
// (this routine also stores the utc timestamp derived from the GPS date and time fields so it can be passed to
|
|
|
// other modules that may have a need for this information).
|
|
|
//
|
|
|
- handle_gps_time(f1,(int)f9);
|
|
|
+ //handle_gps_time(f1,(int)f9);
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if(num > 0) {
|
|
|
+
|
|
|
// update snapshot with latitude
|
|
|
//
|
|
|
my_gps_stat.lat = f3 * ((f4 == 'N')?(1):(-1));
|