]> git.mxchange.org Git - flightgear.git/commitdiff
Don't look for /velocities/groundspeed-kts during initialisation.
authorjmt <jmt>
Mon, 21 Sep 2009 15:56:36 +0000 (15:56 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 21 Sep 2009 20:51:40 +0000 (22:51 +0200)
src/Autopilot/autobrake.cxx

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