1
0
Fork 0

Verbosity fixes.

This commit is contained in:
curt 2005-10-27 14:38:33 +00:00
parent 71dbe7dc29
commit a00de6d7bb
2 changed files with 5 additions and 1 deletions

View 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;
}

View 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 );
}