Esempio n. 1
0
        private void MainSimulator()
        {
            while (!_terminate)
            {
                var newData = _activeData.Clone();
                GeographicPosition newPosition = GreatCircle.CalcCoords(newData.Position, _activeData.Course,
                                                                        _activeData.Speed * UpdateRate);
                newData.Position = newPosition;
                _activeData      = newData;

                SendNewData();
                Thread.Sleep(UpdateRate);
            }
        }
Esempio n. 2
0
 public Simulator()
 {
     _activeData = new SimulatorData();
 }