Esempio n. 1
0
//------------------------------------------------------------------------------
// Get Vehicle data
//------------------------------------------------------------------------------
LCreal JSBSimModel::getGload() const
{
    if (fdmex == 0) return 0.0;
    JSBSim::FGAuxiliary* Auxiliary = fdmex->GetAuxiliary();
    if (Auxiliary == 0) return 0.0;

    return (LCreal)Auxiliary->GetNlf();
}
Esempio n. 2
0
//------------------------------------------------------------------------------
// Get Vehicle data
//------------------------------------------------------------------------------
LCreal JSBSimModel::getGload() const
{
    if (fdmex == nullptr) return 0.0;
    JSBSim::FGAuxiliary* Auxiliary = fdmex->GetAuxiliary();
    if (Auxiliary == nullptr) return 0.0;

    return static_cast<LCreal>(Auxiliary->GetNlf());
}