Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Command.cpp
- 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)
{}