From: <sv...@ww...> - 2005-10-16 00:24:54
|
Author: mkrose Date: 2005-10-15 17:24:47 -0700 (Sat, 15 Oct 2005) New Revision: 1641 Modified: trunk/CSP/CSPSim/Source/LandingGear.cpp Log: Add a sanity check to the landing gear physics. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1641 Modified: trunk/CSP/CSPSim/Source/LandingGear.cpp =================================================================== --- trunk/CSP/CSPSim/Source/LandingGear.cpp 2005-10-16 00:23:06 UTC (rev 1640) +++ trunk/CSP/CSPSim/Source/LandingGear.cpp 2005-10-16 00:24:47 UTC (rev 1641) @@ -645,6 +645,7 @@ if (gear.isFullyRetracted()) continue; b_FullyRetracted->value() = false; const double extension = gear.getExtension(); + assert(extension >= -0.001 && extension <= 1.001); // Approx: gear move to center with retraction. currently LandingGear does not take // extension into account when computing forces, so really only effects wind drag. // at least it _shouldn't_ be common to retract gear while touching the ground... |