/// <summary> /// Initialization Constructor /// </summary> public iRobotConnection(int serialPort) { this.PortName = "COM" + serialPort.ToString(); this.BaudRate = 57600; this.Encoding = Encoding.Default; this.Parity = Parity.None; this.DataBits = 8; this.StopBits = StopBits.One; this.Mode = roomba.RoombaMode.Uninitialized; this.ConnectionType = roomba.iRobotConnectionType.NotConfigured; }
/// <summary> /// Default Constructor /// </summary> public iRobotConnection() { this.PortName = string.Empty; this.BaudRate = 119200; this.Encoding = Encoding.ASCII; this.Parity = Parity.None; this.DataBits = 8; this.StopBits = StopBits.One; this.Mode = roomba.RoombaMode.Uninitialized; this.ConnectionType = roomba.iRobotConnectionType.NotConfigured; }