From: <sv...@ww...> - 2005-12-23 19:58:15
|
Author: mkrose Date: 2005-12-23 11:58:06 -0800 (Fri, 23 Dec 2005) New Revision: 1807 Modified: trunk/CSP/csp/csplib/util/SimpleConfig.cpp trunk/CSP/csp/cspsim/f16/FuelSystem.cpp Log: Fix a comment typo and some commented logging code. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1807 Modified: trunk/CSP/csp/csplib/util/SimpleConfig.cpp =================================================================== --- trunk/CSP/csp/csplib/util/SimpleConfig.cpp 2005-12-23 19:56:36 UTC (rev 1806) +++ trunk/CSP/csp/csplib/util/SimpleConfig.cpp 2005-12-23 19:58:06 UTC (rev 1807) @@ -447,7 +447,7 @@ } -// This is a rather ugly and slow way to delete a section. It can leave stay +// This is a rather ugly and slow way to delete a section. It can leave stray // comments in the middle of sections, but will remove the section entirely, // even if it is multiply declared. This whole function was a bit of an // afterthought, since it isn't very likely to be used in the application this Modified: trunk/CSP/csp/cspsim/f16/FuelSystem.cpp =================================================================== --- trunk/CSP/csp/cspsim/f16/FuelSystem.cpp 2005-12-23 19:56:36 UTC (rev 1806) +++ trunk/CSP/csp/cspsim/f16/FuelSystem.cpp 2005-12-23 19:58:06 UTC (rev 1807) @@ -118,7 +118,7 @@ const double fwd_fuel = m_FwdReservoir->quantity() + m_FwdFuselage->quantity(); const double fwd_heavy = fwd_fuel - aft_fuel; - //static double XXX = 0.0; XXX += dt; if (XXX > 5) { XXX = 0; std::cout << "*** " << b_EngineFeedSwitch->state().getToken() << "; fwd heavy: " << fwd_heavy << " " << m_AFFTActive << "\n"; } + //if (m_AFFTActive) { static double XXX = 0.0; XXX += dt; if (XXX > 5) { XXX = 0; std::cout << "*** " << b_EngineFeedSwitch->state().getToken() << "; fwd heavy: " << fwd_heavy << " " << m_AFFTActive << "\n"; } } if (b_MasterFuelSwitch->state() == master) { switch (b_EngineFeedSwitch->state().getValue()) { |