Receiver code for SLVM

Dependencies:   mbed-rtos mbed

Revision:
0:fd289b2e6b74
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Robot.h	Tue Dec 09 01:15:37 2014 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+//#include "USBHost.h"
+//#include "Utils.h"
+#include <string>
+
+class Robot
+{
+public:
+     Robot(); //Constructor
+     Robot(Serial *MbedSerial, DigitalOut *ConfirmationLed); //Real constructor
+     bool SetMotorVelocity(int velocity);                         //SetMotorVelocity
+     bool SetSelectMotorVelocity(int LEFT, int RIGHT);  //Set individual Motor Velocity
+     bool StopRobot();                                            //Send the stop command
+     bool SetMotorPWM(int ramp, int PWMValue);                    //Set Motor PWM
+     bool SetSelectMotorPWM(int MotorNumber,int ramp, int PWMValue);    //Set individual Motor PWM
+     bool WaitForAck();
+
+private:
+     bool SendCommand(string arg1);                               //Send any properly formated string
+
+     Serial* host;                                          //points to a serial connection
+     DigitalOut* AckLED;                                    //Keeps track of if the mbed received an ack
+    
+};
+