コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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;
 }