示例#1
0
//------------------------------------------------------------------------------
// setGearHandleSwitch() -- Set Gear handle switch position
//                          0 -> Handle up;  1 -> hande down
//------------------------------------------------------------------------------
void JSBSimModel::setGearHandleSwitch(const LCreal sw)
{
    if (fdmex == 0) return;
    JSBSim::FGFCS* FCS = fdmex->GetFCS();
    if (FCS == 0) return;

    FCS->SetGearCmd(sw);
}
示例#2
0
//------------------------------------------------------------------------------
// setGearHandleSwitch() -- Set Gear handle switch position
//                          0 -> handle up;  1 -> handle down
//------------------------------------------------------------------------------
void JSBSimModel::setGearHandleSwitch(const double sw)
{
    if (fdmex == nullptr) return;
    JSBSim::FGFCS* FCS = fdmex->GetFCS();
    if (FCS == nullptr) return;

    FCS->SetGearCmd(sw);
}