public void NextIteration(double input, double time, double dt)
        {
            ControlSystemDataSample dataSample;

            if (mode == ControlSystemMode.OpenLoop)
            {
                var openData = openScheme.NextIteration(input, time, dt);
                dataSample = ControlSystemDataSample.FromOpenSample(openData);
            }
            else
            {
                double previousSystemOutput = Data.Last().systemOutput;
                var    closeData            = closeScheme.NextIteration(input, previousSystemOutput, time, dt);
                dataSample = ControlSystemDataSample.FromCloseSample(closeData);
            }
            Data.Add(dataSample);
        }
Ejemplo n.º 2
0
        public void NextIteration(double input, double time, double dt)
        {
            var dataSample = scheme.NextIteration(input, time, dt);

            Data.Add(dataSample);
        }