]> git.mxchange.org Git - flightgear.git/commitdiff
Verbosity fixes.
authorcurt <curt>
Thu, 27 Oct 2005 14:38:33 +0000 (14:38 +0000)
committercurt <curt>
Thu, 27 Oct 2005 14:38:33 +0000 (14:38 +0000)
utils/GPSsmooth/MIDG-II.cxx
utils/GPSsmooth/MIDG_main.cxx

index c6c65f87e0163175eb1c597e645baef4350a91f4..82d9143f127f5507e7a1669ddb3ba4709970edca 100644 (file)
@@ -443,7 +443,7 @@ int MIDGTrack::next_message( SGIOChannel *ch, SGIOChannel *log,
         return id;
     }
 
-    cout << "Check sum failure!" << endl;
+    // cout << "Check sum failure!" << endl;
     return -1;
 }
 
index 963d908e97f3e0b38e77f3097d71c87f03ca0f69..6cbfdce10dda4758c25ff3b405b3f70ae55a623e 100644 (file)
@@ -519,12 +519,14 @@ int main( int argc, char **argv ) {
             //      << endl;
             // cout << (double)current_time << " " << pos.lat_deg << ", "
             //      << pos.lon_deg << " " << att.yaw_deg << endl;
+            if ( pos.lat_deg > 50 ) {
             printf( "%.3f  %.4f %.4f %.1f  %.2f %.2f %.2f\n",
                     current_time,
                     pos.lat_deg, pos.lon_deg, pos.altitude_msl,
                     att.yaw_rad * 180.0 / SG_PI,
                     att.pitch_rad * 180.0 / SG_PI,
                     att.roll_rad * 180.0 / SG_PI );
+           }
 
             send_data( pos, att );
 
@@ -606,12 +608,14 @@ int main( int argc, char **argv ) {
                 }
             }
 
+           if ( pos.lat_deg > 50 ) {
             printf( "%.3f  %.4f %.4f %.1f  %.2f %.2f %.2f\n",
                     current_time,
                     pos.lat_deg, pos.lon_deg, pos.altitude_msl,
                     att.yaw_rad * 180.0 / SG_PI,
                     att.pitch_rad * 180.0 / SG_PI,
                     att.roll_rad * 180.0 / SG_PI );
+           }
 
             send_data( pos, att );
         }