+ _leftBrakeInput = SGMiscd::max(_brakeInputs[0]->getDoubleValue(),
+ _brakeInputs[2]->getDoubleValue());
+ _rightBrakeInput = SGMiscd::max(_brakeInputs[1]->getDoubleValue(),
+ _brakeInputs[3]->getDoubleValue());
+
+ // various FDMs don't supply sufficent information for us to work,
+ // so just be passive in those cases.
+ if (!_weightOnWheelsNode || !_groundspeedNode || !_engineControlsNode) {
+ // pass the values straight through
+ _leftBrakeOutput = _leftBrakeInput;
+ _rightBrakeOutput = _rightBrakeInput;
+ return;
+ }
+