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.
Sensor/LaneSensor.h@0:a0e9db1628f1, 2020-11-16 (annotated)
- Committer:
- yeongsookim
- Date:
- Mon Nov 16 22:37:13 2020 +0000
- Revision:
- 0:a0e9db1628f1
Init commit
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| yeongsookim | 0:a0e9db1628f1 | 1 | #ifndef MBED_LANESENSOR_H |
| yeongsookim | 0:a0e9db1628f1 | 2 | #define MBED_LANESENSOR_H |
| yeongsookim | 0:a0e9db1628f1 | 3 | |
| yeongsookim | 0:a0e9db1628f1 | 4 | #include "mbed.h" |
| yeongsookim | 0:a0e9db1628f1 | 5 | |
| yeongsookim | 0:a0e9db1628f1 | 6 | |
| yeongsookim | 0:a0e9db1628f1 | 7 | |
| yeongsookim | 0:a0e9db1628f1 | 8 | |
| yeongsookim | 0:a0e9db1628f1 | 9 | class LaneSensor |
| yeongsookim | 0:a0e9db1628f1 | 10 | { |
| yeongsookim | 0:a0e9db1628f1 | 11 | public: |
| yeongsookim | 0:a0e9db1628f1 | 12 | LaneSensor(PinName lll,PinName ll,PinName l,PinName m,PinName r,PinName rr,PinName rrr); |
| yeongsookim | 0:a0e9db1628f1 | 13 | float getError(); |
| yeongsookim | 0:a0e9db1628f1 | 14 | int getData(); |
| yeongsookim | 0:a0e9db1628f1 | 15 | |
| yeongsookim | 0:a0e9db1628f1 | 16 | protected: |
| yeongsookim | 0:a0e9db1628f1 | 17 | float error_,prevError_; |
| yeongsookim | 0:a0e9db1628f1 | 18 | BusIn sensorsIn_; |
| yeongsookim | 0:a0e9db1628f1 | 19 | }; |
| yeongsookim | 0:a0e9db1628f1 | 20 | |
| yeongsookim | 0:a0e9db1628f1 | 21 | #endif //MBED_DISTANCESENSOR_H |