]> git.mxchange.org Git - flightgear.git/commitdiff
Clean up some debugging output.
authorcurt <curt>
Wed, 17 Jan 2007 23:11:45 +0000 (23:11 +0000)
committercurt <curt>
Wed, 17 Jan 2007 23:11:45 +0000 (23:11 +0000)
utils/GPSsmooth/UGear.cxx
utils/GPSsmooth/UGear_main.cxx

index 739f96cdef43b202c810dfc6d0278b5b2e137a62..c707986da7ccd5cc791ec18268bd986c729a12d4 100644 (file)
@@ -66,12 +66,12 @@ static bool validate_cksum( uint8_t id, uint8_t size, char *buf,
         c0 += (uint8_t)buf[i];
         c1 += c0;
         // cout << "c0 = " << (unsigned int)c0 << " c1 = " << (unsigned int)c1
-        //      << " [" << (unsigned int)buf[i] << "]" << endl;
+        //      << " [" << (unsigned int)(uint8_t)buf[i] << "]" << endl;
     }
 
-    cout << "c0 = " << (unsigned int)c0 << " (" << (unsigned int)cksum0
-         << ") c1 = " << (unsigned int)c1 << " (" << (unsigned int)cksum1
-         << ")" << endl;
+    // cout << "c0 = " << (unsigned int)c0 << " (" << (unsigned int)cksum0
+    //      << ") c1 = " << (unsigned int)c1 << " (" << (unsigned int)cksum1
+    //      << ")" << endl;
 
     if ( c0 == cksum0 && c1 == cksum1 ) {
         return true;
@@ -287,7 +287,7 @@ int UGEARTrack::next_message( SGIOChannel *ch, SGIOChannel *log,
     // read message id and size
     myread( ch, log, tmpbuf, 1 ); uint8_t id = (unsigned char)tmpbuf[0];
     myread( ch, log, tmpbuf, 1 ); uint8_t size = (unsigned char)tmpbuf[0];
-    cout << "message = " << (int)id << " size = " << (int)size << endl;
+    // cout << "message = " << (int)id << " size = " << (int)size << endl;
 
     // load message
     if ( ch->get_type() == sgFileType ) {
@@ -352,7 +352,7 @@ int UGEARTrack::next_message( SGSerialPort *serial, SGIOChannel *log,
     serial_read( serial, log, tmpbuf, 2 );
     uint8_t id = (unsigned char)tmpbuf[0];
     uint8_t size = (unsigned char)tmpbuf[1];
-    cout << "message = " << (int)id << " size = " << (int)size << endl;
+    // cout << "message = " << (int)id << " size = " << (int)size << endl;
 
     // load message
     serial_read( serial, log, savebuf, size );
index f10a7f84ee845ce8a42c8932f4016c7ac0a8bf97..b8062fe5fa4eb0bc6fdc8b8c218ff671d3c8ac7b 100644 (file)
@@ -695,11 +695,11 @@ int main( int argc, char **argv ) {
         }
 
         while ( input.is_enabled() ) {
-           cout << "looking for next message ..." << endl;
+           // cout << "looking for next message ..." << endl;
             int id = track.next_message( &input, &output, &gpspacket,
                                         &imupacket, &navpacket, &servopacket,
                                         &healthpacket );
-            cout << "message id = " << id << endl;
+            // cout << "message id = " << id << endl;
             count++;
 
             if ( id == GPS_PACKET ) {