Example #1
0
 public Robot()
 {
     port    = new ComPort();
     Command = new Commands(port);
     Sensor  = new Sensors(port);
     Motor   = new Motors(port);
     LED     = new LEDs(port);
 }
Example #2
0
 public LEDs(ComPort port)
 {
     this.port = port;
 }
Example #3
0
 public Sensors(ComPort port)
 {
     this.port    = port;
     sensor_state = new byte[26];
 }
Example #4
0
 public Motors(ComPort port)
 {
     this.port   = port;
     left_wheel  = 0;
     right_wheel = 0;
 }
Example #5
0
 public Commands(ComPort port)
 {
     this.port = port;
 }