コード例 #1
0
        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;
        }
コード例 #2
0
 public static void Initialize(ConnectionType connectionType)
 {
     communicationsManager = new CommunicationsManager(connectionType);
 }