/// <summary>
 /// Creates an instance.
 /// </summary>
 public RCInputTestUIModel(TaskFactory uiThread)
     : base(uiThread)
 {
     // Initialize device
     Device = new NavioRCInputDevice();
     Device.ChannelsChanged += OnChannelsChanged;
 }
        /// <summary>
        /// Executes the task.
        /// </summary>
        public void Run(IBackgroundTaskInstance taskInstance)
        {
            // Create the RC input device
            using (var rcInput = new NavioRCInputDevice())
            {
                // Receive notifcations when frames arrive
                rcInput.ChannelsChanged += OnChannelsChanged;

                // Wait forever (this background task has no GUI)
                rcInput.Stopped.WaitOne();
            }
        }