From 8adf1d6adaa98d55be9007e583f31d71c7f78117 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 17 Jan 2007 23:11:45 +0000 Subject: [PATCH] Clean up some debugging output. --- utils/GPSsmooth/UGear.cxx | 12 ++++++------ utils/GPSsmooth/UGear_main.cxx | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/GPSsmooth/UGear.cxx b/utils/GPSsmooth/UGear.cxx index 739f96cde..c707986da 100644 --- a/utils/GPSsmooth/UGear.cxx +++ b/utils/GPSsmooth/UGear.cxx @@ -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 ); diff --git a/utils/GPSsmooth/UGear_main.cxx b/utils/GPSsmooth/UGear_main.cxx index f10a7f84e..b8062fe5f 100644 --- a/utils/GPSsmooth/UGear_main.cxx +++ b/utils/GPSsmooth/UGear_main.cxx @@ -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 ) { -- 2.39.5