1
0
Fork 0

Don't look for /velocities/groundspeed-kts during initialisation.

This commit is contained in:
jmt 2009-09-21 15:56:36 +00:00 committed by Tim Moore
parent 4d67c69462
commit 263ff7d93d

View file

@ -62,7 +62,6 @@ void FGAutoBrake::init()
(*this, &FGAutoBrake::getRTO, &FGAutoBrake::setRTO)); (*this, &FGAutoBrake::getRTO, &FGAutoBrake::setRTO));
_engineControlsNode = fgGetNode("/controls/engines"); _engineControlsNode = fgGetNode("/controls/engines");
_groundspeedNode = fgGetNode("/velocities/groundspeed-kt");
// brake position nodes // brake position nodes
_brakeInputs[0] = fgGetNode("/controls/gear/brake-left"); _brakeInputs[0] = fgGetNode("/controls/gear/brake-left");
@ -93,6 +92,7 @@ void FGAutoBrake::init()
void FGAutoBrake::postinit() void FGAutoBrake::postinit()
{ {
_weightOnWheelsNode = fgGetNode("/gear/gear/wow"); _weightOnWheelsNode = fgGetNode("/gear/gear/wow");
_groundspeedNode = fgGetNode("/velocities/groundspeed-kt");
_lastWoW = _weightOnWheelsNode->getBoolValue(); _lastWoW = _weightOnWheelsNode->getBoolValue();
} }