예제 #1
0
 public CameraViewModel(IMotorControl motorControl,IHornControl hornControl,IBrakeControl brakeControl)
 {
     _hornControl = hornControl;
     _motorControl = motorControl;
     _brakeControl = brakeControl;
     SpeedFeedback.PropertyChanged += (s,e) => { RaisePropertyChanged("speed");};
     DirectionFeedback.PropertyChanged += (s, e) => { RaisePropertyChanged("direction_angle"); };
     motorKeys = new List<Key>() {Key.W,Key.A,Key.S,Key.D};
 }
예제 #2
0
 public CameraViewModel(IMotorControl motorControl, IHornControl hornControl, IBrakeControl brakeControl)
 {
     _hornControl  = hornControl;
     _motorControl = motorControl;
     _brakeControl = brakeControl;
     SpeedFeedback.PropertyChanged     += (s, e) => { RaisePropertyChanged("speed"); };
     DirectionFeedback.PropertyChanged += (s, e) => { RaisePropertyChanged("direction_angle"); };
     motorKeys = new List <Key>()
     {
         Key.W, Key.A, Key.S, Key.D
     };
 }
예제 #3
0
 public SpeechInterpretation(IMotorControl motorControl,IHeadlightControl headlightControl,IHornControl hornControl)
 {
     _motorControl = motorControl;
     _headlightControl = headlightControl;
     _hornControl = hornControl;
 }
예제 #4
0
 public SpeechInterpretation(IMotorControl motorControl, IHeadlightControl headlightControl, IHornControl hornControl)
 {
     _motorControl     = motorControl;
     _headlightControl = headlightControl;
     _hornControl      = hornControl;
 }