Exemplo n.º 1
0
//------------------------------------------------------------------------------
// getLandingGearPosition() --   Returns the landing gear position (percent)
//      0-> Fully Retracted;  100.0 -> Fully Extended 
//------------------------------------------------------------------------------
LCreal JSBSimModel::getLandingGearPosition() const
{
    if (fdmex == 0) return 0;
    JSBSim::FGFCS* FCS = fdmex->GetFCS();
    if (FCS == 0) return 0;

    return (LCreal)(FCS->GetGearPos() * 100.0);
}
Exemplo n.º 2
0
//------------------------------------------------------------------------------
// getLandingGearPosition() --   Returns the landing gear position (percent)
//      0-> Fully Retracted;  100.0 -> Fully Extended
//------------------------------------------------------------------------------
LCreal JSBSimModel::getLandingGearPosition() const
{
    if (fdmex == nullptr) return 0;
    JSBSim::FGFCS* FCS = fdmex->GetFCS();
    if (FCS == nullptr) return 0;

    return static_cast<LCreal>(FCS->GetGearPos() * 100.0);
}