Beispiel #1
0
void FGFDMExec::ResetToInitialConditions(void)
{
  if (Constructing) return;

  vector <FGModel*>::iterator it;
  for (it = Models.begin(); it != Models.end(); ++it) (*it)->InitModel();

  RunIC();
  if (Script) Script->ResetEvents();
}
Beispiel #2
0
void FGFDMExec::ResetToInitialConditions(int mode)
{
  if (Constructing) return;

  if (mode == 1) Output->SetStartNewOutput();

  for (unsigned int i = 0; i < Models.size(); i++) {
    // The Input/Output models will be initialized during the RunIC() execution
    if (i == eInput || i == eOutput) continue;

    LoadInputs(i);
    Models[i]->InitModel();
  }

  if (Script) Script->ResetEvents();

  RunIC();
}