From: <sv...@ww...> - 2006-05-02 18:02:39
|
Author: stormbringer Date: 2006-05-02 11:02:28 -0700 (Tue, 02 May 2006) New Revision: 1939 Modified: trunk/csp/cspsim/LandingGear.cpp Log: The touchdown flag is now set back correctly Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1939 Modified: trunk/csp/cspsim/LandingGear.cpp =================================================================== --- trunk/csp/cspsim/LandingGear.cpp 2006-04-30 21:31:33 UTC (rev 1938) +++ trunk/csp/cspsim/LandingGear.cpp 2006-05-02 18:02:28 UTC (rev 1939) @@ -33,6 +33,7 @@ * - move spindown to common method * - base spindown on friction coefficient (Real) * - real wheel inertia? + * Touchdown check via push channel * */ @@ -780,12 +781,10 @@ m_Gear[i]->postSimulationStep(dt, model_origin_local, vBody, *m_Attitude, m_Height, m_GroundNormalBody); // generic WOW signal (any gear in contact with the ground triggers it) if (m_Gear[i]->getWOW()) b_WOW->value() = true; - //if (m_Gear[i]->getTouchdown()) { - // if (m_Gear[i]->getTouchdownSkid()) { - // if (m_Gear[i]->getTouchdownSound().valid()) m_Gear[i]->getTouchdownSound()->play(); - // } - // m_Gear[i]->resetTouchdown(); - //} + // TODO: The touchdown flag should be implemented as a push channel + if (m_Gear[i]->getTouchdown()) { + m_Gear[i]->resetTouchdown(); + } } } |