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@0:670c09433f11, 2021-02-12 (annotated)
- Committer:
- okadaya
- Date:
- Fri Feb 12 09:02:32 2021 +0000
- Revision:
- 0:670c09433f11
- Child:
- 1:213d63a76a25
- Child:
- 3:a64fd9b238c5
prototype
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 | void lefttire2(float speed); |
okadaya | 0:670c09433f11 | 18 | void righttire2(float speed); |
okadaya | 0:670c09433f11 | 19 | |
okadaya | 0:670c09433f11 | 20 | }; |
okadaya | 0:670c09433f11 | 21 | |
okadaya | 0:670c09433f11 | 22 | #endif |