From: <sv...@ww...> - 2005-10-15 21:23:02
|
Author: mkrose Date: 2005-10-15 14:22:55 -0700 (Sat, 15 Oct 2005) New Revision: 1630 Modified: trunk/CSP/CSPSim/CHANGES.current trunk/CSP/CSPSim/Source/Systems/AircraftFlightSensors.cpp Log: * Show mach readout to 2 decimal places on info display. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1630 Modified: trunk/CSP/CSPSim/CHANGES.current =================================================================== --- trunk/CSP/CSPSim/CHANGES.current 2005-10-15 21:07:03 UTC (rev 1629) +++ trunk/CSP/CSPSim/CHANGES.current 2005-10-15 21:22:55 UTC (rev 1630) @@ -20,6 +20,8 @@ * Add an interface for accessing the vehicle 3D model from subsystem instances. + * Show mach readout to 2 decimal places on info display. + 2005-08-27: onsight * Link against sigc-2.0, not sigc-1.2 for debug builds under MSVC. Modified: trunk/CSP/CSPSim/Source/Systems/AircraftFlightSensors.cpp =================================================================== --- trunk/CSP/CSPSim/Source/Systems/AircraftFlightSensors.cpp 2005-10-15 21:07:03 UTC (rev 1629) +++ trunk/CSP/CSPSim/Source/Systems/AircraftFlightSensors.cpp 2005-10-15 21:22:55 UTC (rev 1630) @@ -90,8 +90,8 @@ line.precision(0); line << "P: " << std::setw(3) << b_Pressure->value() << ", T: " << std::setw(3) << b_Temperature->value() - << ", Mach: " << std::setw(3) << b_Mach->value() - << ", CAS: " << std::setw(3) << simdata::convert::mps_kts(b_CAS->value()) << " kts"; + << ", Mach: " << std::setw(5) << std::setprecision(2) << b_Mach->value() + << ", CAS: " << std::setw(3) << std::setprecision(0) << simdata::convert::mps_kts(b_CAS->value()) << " kts"; info.push_back(line.str()); } |