![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Pathfinding nach rechts funktioniert noch nicht...der rest schon
Dependencies: mbed
Fork of MicroMouse_MASTER_THREE by
IRSensor.h@1:d9e840c48b1e, 2018-03-31 (annotated)
- Committer:
- ruesipat
- Date:
- Sat Mar 31 16:45:57 2018 +0000
- Revision:
- 1:d9e840c48b1e
- Parent:
- 0:a9fe4ef404bf
j
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ruesipat | 0:a9fe4ef404bf | 1 | #ifndef IR_SENSOR_H_ |
ruesipat | 0:a9fe4ef404bf | 2 | #define IR_SENSOR_H_ |
ruesipat | 0:a9fe4ef404bf | 3 | |
ruesipat | 0:a9fe4ef404bf | 4 | #include <cstdlib> |
ruesipat | 0:a9fe4ef404bf | 5 | #include <mbed.h> |
ruesipat | 0:a9fe4ef404bf | 6 | |
ruesipat | 0:a9fe4ef404bf | 7 | class IRSensor |
ruesipat | 0:a9fe4ef404bf | 8 | { |
ruesipat | 0:a9fe4ef404bf | 9 | |
ruesipat | 0:a9fe4ef404bf | 10 | public: |
ruesipat | 1:d9e840c48b1e | 11 | |
ruesipat | 1:d9e840c48b1e | 12 | IRSensor(AnalogIn& distance); |
ruesipat | 0:a9fe4ef404bf | 13 | virtual ~IRSensor(); |
ruesipat | 0:a9fe4ef404bf | 14 | float read(); |
ruesipat | 0:a9fe4ef404bf | 15 | private: |
ruesipat | 0:a9fe4ef404bf | 16 | AnalogIn& distance; |
ruesipat | 1:d9e840c48b1e | 17 | |
ruesipat | 1:d9e840c48b1e | 18 | |
ruesipat | 0:a9fe4ef404bf | 19 | }; |
ruesipat | 0:a9fe4ef404bf | 20 | |
ruesipat | 0:a9fe4ef404bf | 21 | #endif /* IR_SENSOR_H_ */ |