예제 #1
0
 public RoombaController()
 {
     this.serialPort  = new SerialPortController(SERIAL_PORT_NAME, SERIAL_PORT_BAUD_RATE);
     this.cmdExecutor = new RoombaCommandExecutor(this.serialPort);
     // connected to serial port 5 DD (Device Detect), which is used to wake up Roomba
     this.wakeupSignalPort = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.Di47, true);
 }
예제 #2
0
 public RoombaCommandExecutor(SerialPortController serialPortController)
 {
     this.serialPortController = serialPortController;
 }