]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a typo introduced when supporting faster than integer gps clocks.
authorcurt <curt>
Tue, 2 Oct 2007 21:51:50 +0000 (21:51 +0000)
committercurt <curt>
Tue, 2 Oct 2007 21:51:50 +0000 (21:51 +0000)
utils/GPSsmooth/gps.cxx

index 670353ed24eb193706b4473cb1ae892c4d605eb2..1a83e70c85a609fc3a5812f00f618826019ccc4e 100644 (file)
@@ -84,7 +84,7 @@ int GPSTrack::load( const string &file ) {
         } else if ( tokens[0] == "$GPGGA" && tokens.size() == 15 ) {
             double raw_time = atof(tokens[1].c_str());
             GPSTime gps_time = GPSTime( raw_time );
-            if ( fabs(gps_time.get_time() - p.gps_time.get_time()) < 0.0001 &&
+            if ( fabs(gps_time.get_time() - p.gps_time.get_time()) > 0.0001 &&
                  (p.gps_time.get_time() > 1.0) ) {
                 // new data cycle store last data before continuing
                 data.push_back( p );