public CarWithFakeRegulators(CarController parent) { Controller = parent; CarInfo = new CarInformations(); SteeringWheelAngleRegulator = new FakeSteeringWheelRegulator(); SpeedRegulator = new FakeSpeedRegulator(); BrakeRegulator = new FakeBrakeRegulator(); CarComunicator = new RealCarCommunicator(this); }
public CarWithFakeCommunicator(CarController parent) { Controller = parent; CarInfo = new CarInformations(); CarComunicator = new FakeCarCommunicator(this); SteeringWheelAngleRegulator = new PIDSteeringWheelAngleRegulator(this); SpeedRegulator = new PIDSpeedRegulator(this); BrakeRegulator = new PIDBrakeRegulator(this); CarComunicator.InitRegulatorsEventsHandling(); }