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