tankkk

Dependencies:   USBHost USBHostXpad mbed-rtos mbed

Committer:
hotwheelharry
Date:
Sat Dec 06 05:20:03 2014 +0000
Revision:
9:789350244478
Parent:
0:79485480cd7e
stop at atartup

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hotwheelharry 0:79485480cd7e 1 #include "mbed.h"
hotwheelharry 0:79485480cd7e 2
hotwheelharry 0:79485480cd7e 3 class Traxster {
hotwheelharry 0:79485480cd7e 4 private:
hotwheelharry 0:79485480cd7e 5 Serial& rob;
hotwheelharry 0:79485480cd7e 6 public:
hotwheelharry 0:79485480cd7e 7 Traxster(Serial& robotComm /* and other controls or sensors...*/)
hotwheelharry 0:79485480cd7e 8 : rob(robotComm)
hotwheelharry 0:79485480cd7e 9 {
hotwheelharry 0:79485480cd7e 10 rob.baud(19200);
hotwheelharry 0:79485480cd7e 11 };
hotwheelharry 0:79485480cd7e 12
hotwheelharry 0:79485480cd7e 13 // Set motor speeds. [-1, +1] of max speed for motor.
hotwheelharry 0:79485480cd7e 14 void SetMotors(float m1, float m2);
hotwheelharry 0:79485480cd7e 15
hotwheelharry 0:79485480cd7e 16 };