 #define SPEED_B 11
 #define BRAKE_B 8
 
+#define TRIG_PIN 7
+#define ECHO_PIN 6
+
+//control the bot with keyboard commands via serial connection
 #define SERIAL_ON 0
-#define WIICHUCK_ON 1
-
-#define DEBUG 0
+
+//control the bot via a wii nunchuck
+#define WIICHUCK_ON 0
+
+//control the bot via ping sensor
+#define PING_ON 1
+
+#define DEBUG 0  
 
 //    tophat left x 24
 //    tophat left y 124

        nunchuck_setpowerpins();
        nunchuck_init(); // send the initilization handshake
    }
}

void loop() {

    pinMode(11, OUTPUT); //Initiates Brake Channel B pin
  
    if (DEBUG) {
      Serial.begin(9600);
      Serial.println("setup");
    }
  
