Example #1
0
LCreal JSBSimModel::getGrossWeight() const
{
    if (fdmex == 0) return 0.0;
    JSBSim::FGMassBalance* MassBalance = fdmex->GetMassBalance();
    if (MassBalance == 0) return 0.0;

    return (LCreal)MassBalance->GetWeight();
}
Example #2
0
LCreal JSBSimModel::getGrossWeight() const
{
    if (fdmex == nullptr) return 0.0;
    JSBSim::FGMassBalance* MassBalance = fdmex->GetMassBalance();
    if (MassBalance == nullptr) return 0.0;

    return static_cast<LCreal>(MassBalance->GetWeight());
}