public HelicopterController(ConnectionType connectionType) { Microcontroller.Initialize(connectionType); communicationsManager = Microcontroller.GetInstanceOfCommunicationManager(); communicationsManager.PropertyChanged += OnCommunicationManagerPropertyChanged; Yaw = new YawController(); Tilt = new TiltController(); Yaw.PropertyChanged += OnAngleControllerPropertyChanged; Tilt.PropertyChanged += OnAngleControllerPropertyChanged; }
public static void Initialize(ConnectionType connectionType) { communicationsManager = new CommunicationsManager(connectionType); }