public CarWithFakeRegulators(CarController parent)
        {
            Controller = parent;
            CarInfo = new CarInformations();

            SteeringWheelAngleRegulator = new FakeSteeringWheelRegulator();
            SpeedRegulator = new FakeSpeedRegulator();
            BrakeRegulator = new FakeBrakeRegulator();

            CarComunicator = new RealCarCommunicator(this);
        }
Ejemplo n.º 2
0
 public RS232Controller(RealCarCommunicator comm)
 {
     communicator = comm;
 }