public CServosController(MainForm p) { parent = p; m_SerialPort = new SerialPort("COM2", 115200, Parity.None, 8, StopBits.One); m_SerialPort.Handshake = Handshake.None; m_SerialPort.DiscardNull = false; m_SerialPort.RtsEnable = true; }
public CRobotClient(MainForm p) { parent = p; m_Socket = null; m_NetworkStream = null; m_ReadBuffer = new byte[READ_BUFFER_SIZE]; m_cbDataRead = new AsyncCallback(OnDataRead); m_cbDataSent = new AsyncCallback(OnDataSent); }