Xiaofei Qiu / Command
Revision:
2:3d1c13d63966
Parent:
1:13c4bf8989d5
Child:
3:97a5a3744481
diff -r 13c4bf8989d5 -r 3d1c13d63966 Command.cpp
--- a/Command.cpp	Sun Nov 22 01:04:17 2015 +0000
+++ b/Command.cpp	Sat Nov 28 00:57:26 2015 +0000
@@ -3,17 +3,15 @@
 #include "mbed.h"
 #include "Motor.h"
 
-Motor _RIGHT_WHEEL(p25, p6, p5); // Motor A pwm, fwd, rev
-Motor _LEFT_WHEEL(p26, p7, p8);//Motor B pwm, fwd, rev
-DigitalOut _STBY(p11); // Set STBY = 1, enable both motor; Set STBY = 0; disable both motor. 
-AnalogIn _IR(p17); //IR sensor
+Motor _RIGHT_WHEEL(p25, p6, p5);    // Motor A pwm, fwd, rev
+Motor _LEFT_WHEEL(p26, p7, p8);     // Motor B pwm, fwd, rev
+DigitalOut _STBY(p11);              // Set STBY = 1, enable both motor; Set STBY = 0; disable both motor. 
+AnalogIn _IR(p17);                  // IR sensor
 DigitalOut _LED1(LED1);
 
 DigitalIn _LEFT_ENCODER(p19);
 DigitalIn _RIGHT_ENCODER(p20);
 
-Serial pc(USBTX,USBRX);
-
 Command::Command():_LEFT_SPEED(0),_RIGHT_SPEED(0)
 {}