//------------------------------------------------------------------------------ // getSpeedBrakesSwitch() -- Returns the speed brake position (percent) // 0-> Fully Retracted; 100.0 -> Fully Extended //------------------------------------------------------------------------------ LCreal JSBSimModel::getSpeedBrakePosition() const { if (fdmex == 0) return 0; JSBSim::FGFCS* FCS = fdmex->GetFCS(); if (FCS == 0) return 0; return (LCreal)(FCS->GetDsbPos(JSBSim::ofNorm) * 100.0); }
//------------------------------------------------------------------------------ // getSpeedBrakesSwitch() -- Returns the speed brake position (percent) // 0-> Fully Retracted; 100.0 -> Fully Extended //------------------------------------------------------------------------------ LCreal JSBSimModel::getSpeedBrakePosition() const { if (fdmex == nullptr) return 0; JSBSim::FGFCS* FCS = fdmex->GetFCS(); if (FCS == nullptr) return 0; return static_cast<LCreal>(FCS->GetDsbPos(JSBSim::ofNorm) * 100.0); }