示例#1
0
        public void Initialize(double dt)
        {
            Data.Clear();
            var initialData = scheme.Initialize(0d, dt);

            Data.Add(initialData);
        }
        public void Initialize(double dt)
        {
            Data.Clear();
            ControlSystemDataSample dataSample;

            if (mode == ControlSystemMode.OpenLoop)
            {
                dataSample = ControlSystemDataSample.FromOpenSample(openScheme.Initialize(0d, dt));
                Data.Add(dataSample);
            }
            else
            {
                dataSample = ControlSystemDataSample.FromCloseSample(closeScheme.Initialize(0d, dt));
                Data.Add(dataSample);
            }
        }