Niet van mijzelf
Dependencies: USBHost USBHostXpad mbed-rtos mbed
Fork of x4180_Tank by
Traxster.h@0:79485480cd7e, 2014-11-13 (annotated)
- Committer:
- hotwheelharry
- Date:
- Thu Nov 13 23:20:02 2014 +0000
- Revision:
- 0:79485480cd7e
first commit - compile ok;
Who changed what in which revision?
User | Revision | Line number | New 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 | }; |