示例#1
0
        public async void CloseSerialPort()
        {
            await TelemetryLink.CloseAsync();

            ConnectMessage = "Connect";
            OpenSerialPortCommand.RaiseCanExecuteChanged();
            GetWaypointsCommand.RaiseCanExecuteChanged();
        }
示例#2
0
        public async void OpenSerialPort()
        {
            SelectedPort.BaudRate = 57600;
            await TelemetryLink.OpenAsync(SelectedPort);

            ConnectMessage = "Disconnect";
            OpenSerialPortCommand.RaiseCanExecuteChanged();
            GetWaypointsCommand.RaiseCanExecuteChanged();
        }