public CarWithFakeRegulators(DefaultCarController parent) { Controller = parent; CarInfo = new CarInformations(); SteeringWheelAngleRegulator = new FakeSteeringWheelRegulator(); SpeedRegulator = new FakeSpeedRegulator(); BrakeRegulator = new FakeBrakeRegulator(); CarComunicator = new RealCarCommunicator(this); }
public CarWithFakeCommunicator(DefaultCarController parent) { Controller = parent; CarInfo = new CarInformations(); CarComunicator = new FakeCarCommunicator(this); SteeringWheelAngleRegulator = new PIDSteeringWheelAngleRegulator(this); SpeedRegulator = new PIDSpeedRegulator(this); BrakeRegulator = new PIDBrakeRegulator(this); CarComunicator.InitRegulatorsEventsHandling(); }
/// <summary> /// constructor which is initializing CarController on itself /// </summary> public MainWindow() { System.Threading.Thread.CurrentThread.Priority = System.Threading.ThreadPriority.AboveNormal; Controller = new DefaultCarController(); InitializeComponent(); ExternalEventsHandlingInit(); this.KeyDown += new KeyEventHandler(MainWindow_KeyDown); //initialize timer mTimer.Elapsed += mTimer_Elapsed; mTimer.Start(); }
public ViewForm() { InitializeComponent(); carController = new CarController.DefaultCarController(); steeringWindow = new CarController.MainWindow(carController); steeringWindow.Show(); steeringWindow.Activate(); }
public JurekServer(int port) : base(port) { carController = new DefaultCarController(); }