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@3:a64fd9b238c5, 2021-07-22 (annotated)
- Committer:
- okadaya
- Date:
- Thu Jul 22 01:06:29 2021 +0000
- Revision:
- 3:a64fd9b238c5
- Parent:
- 0:670c09433f11
- Child:
- 4:085a9c395959
rebuild library
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 | 0:670c09433f11 | 9 | int word=1,word2=0; |
| okadaya | 0:670c09433f11 | 10 | int direction=0; |
| okadaya | 0:670c09433f11 | 11 | int leftfront=0; |
| okadaya | 0:670c09433f11 | 12 | int rightfront=0; |
| okadaya | 0:670c09433f11 | 13 | int leftback=0; |
| okadaya | 0:670c09433f11 | 14 | int rightback=0; |
| okadaya | 0:670c09433f11 | 15 | void lefttire(float speed); |
| okadaya | 0:670c09433f11 | 16 | void righttire(float speed); |
| okadaya | 0:670c09433f11 | 17 | }; |
| okadaya | 0:670c09433f11 | 18 | |
| okadaya | 0:670c09433f11 | 19 | #endif |