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.
Dependencies: USBHost USBHostXpad mbed-rtos mbed
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 | }; |
