Exemplo n.º 1
0
        private void Connect()
        {
            comm          = new CSerialComm();
            comm.Comport  = Properties.Settings.Default.Comport;
            comm.Baudrate = Properties.Settings.Default.Baud;
            if (comm.Connect())
            {
                CDroneManager.Initialize(comm);
                buttonConnect.Text = "Disconnect";

                RefreshAll();
            }
        }
Exemplo n.º 2
0
 public void ConnectSerial(string comport, string baudrate)
 {
     serialComm = new CSerialComm();
     serialComm.Connect(comport, baudrate);
     serialComm.OnPacket += comm_OnPacket;
 }