Example #1
0
//------------------------------------------------------------------------------
// setControlStickRollInput(Roll) --  Control inputs: normalized
//   roll:  -1.0 -> max left;  0.0 -> center;  1.0 -> max right
//------------------------------------------------------------------------------
void JSBSimModel::setControlStickRollInput(const LCreal roll)
{
    if (fdmex == 0) return;
    JSBSim::FGFCS* FCS = fdmex->GetFCS();
    if (FCS == 0) return;

    FCS->SetDaCmd(roll);
}
Example #2
0
//------------------------------------------------------------------------------
// setControlStickRollInput(Roll) --  Control inputs: normalized
//   roll:  -1.0 -> max left;  0.0 -> center;  1.0 -> max right
//------------------------------------------------------------------------------
void JSBSimModel::setControlStickRollInput(const double roll)
{
    if (fdmex == nullptr) return;
    JSBSim::FGFCS* FCS = fdmex->GetFCS();
    if (FCS == nullptr) return;

    FCS->SetDaCmd(roll);
}