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.
MDDS30_oit.h@1:213d63a76a25, 2021-07-30 (annotated)
- Committer:
- okadaya
- Date:
- Fri Jul 30 11:00:46 2021 +0000
- Revision:
- 1:213d63a76a25
- Parent:
- 0:670c09433f11
dr;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| okadaya | 0:670c09433f11 | 1 | #ifndef MDDS30_OIT_H |
| okadaya | 0:670c09433f11 | 2 | #define MDDS30_OIT_H |
| okadaya | 0:670c09433f11 | 3 | #include "mbed.h" |
| okadaya | 0:670c09433f11 | 4 | |
| okadaya | 0:670c09433f11 | 5 | class MDDS30oit{ |
| okadaya | 0:670c09433f11 | 6 | public: |
| okadaya | 0:670c09433f11 | 7 | MDDS30oit(PinName _txpin, PinName _rxpin); |
| okadaya | 0:670c09433f11 | 8 | Serial md; |
| okadaya | 1:213d63a76a25 | 9 | int word; |
| okadaya | 1:213d63a76a25 | 10 | int word2; |
| okadaya | 1:213d63a76a25 | 11 | int direction; |
| okadaya | 1:213d63a76a25 | 12 | int leftfront; |
| okadaya | 1:213d63a76a25 | 13 | int rightfront; |
| okadaya | 1:213d63a76a25 | 14 | int leftback; |
| okadaya | 1:213d63a76a25 | 15 | int rightback; |
| okadaya | 0:670c09433f11 | 16 | void lefttire(float speed); |
| okadaya | 0:670c09433f11 | 17 | void righttire(float speed); |
| okadaya | 0:670c09433f11 | 18 | void lefttire2(float speed); |
| okadaya | 0:670c09433f11 | 19 | void righttire2(float speed); |
| okadaya | 0:670c09433f11 | 20 | |
| okadaya | 0:670c09433f11 | 21 | }; |
| okadaya | 0:670c09433f11 | 22 | |
| okadaya | 0:670c09433f11 | 23 | #endif |