![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Fertige Version mit geschwindigkeit 100
Dependencies: mbed
Fork of Micromouse_alpha_copy_copy by
CheckWalls.h@5:b8b1a979b0d5, 2018-04-25 (annotated)
- Committer:
- ruesipat
- Date:
- Wed Apr 25 12:07:03 2018 +0000
- Revision:
- 5:b8b1a979b0d5
- Parent:
- 1:d9e840c48b1e
25.04.2018_FINDET ZIEL
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ruesipat | 1:d9e840c48b1e | 1 | #ifndef CHECKWALLS_H_ |
ruesipat | 1:d9e840c48b1e | 2 | #define CHECKWALLS_H_ |
ruesipat | 1:d9e840c48b1e | 3 | |
ruesipat | 1:d9e840c48b1e | 4 | #include <cstdlib> |
ruesipat | 1:d9e840c48b1e | 5 | #include <mbed.h> |
ruesipat | 5:b8b1a979b0d5 | 6 | #include "IRSensor.h" |
ruesipat | 1:d9e840c48b1e | 7 | |
ruesipat | 1:d9e840c48b1e | 8 | class CheckWalls |
ruesipat | 1:d9e840c48b1e | 9 | { |
ruesipat | 1:d9e840c48b1e | 10 | |
ruesipat | 1:d9e840c48b1e | 11 | public: |
ruesipat | 1:d9e840c48b1e | 12 | //IRSensor(AnalogIn& distance, DigitalOut& bit0, DigitalOut& bit1, DigitalOut& bit2, int number); |
ruesipat | 5:b8b1a979b0d5 | 13 | CheckWalls(IRSensor& irSensor0, IRSensor& irSensor1, IRSensor& irSensor2, int& wallRight, int& wallFront, int& wallLeft); |
ruesipat | 1:d9e840c48b1e | 14 | virtual ~CheckWalls(); |
ruesipat | 1:d9e840c48b1e | 15 | void check(); |
ruesipat | 1:d9e840c48b1e | 16 | |
ruesipat | 1:d9e840c48b1e | 17 | |
ruesipat | 1:d9e840c48b1e | 18 | private: |
ruesipat | 1:d9e840c48b1e | 19 | |
ruesipat | 1:d9e840c48b1e | 20 | static const float WALL_DISTANCE; |
ruesipat | 1:d9e840c48b1e | 21 | |
ruesipat | 5:b8b1a979b0d5 | 22 | IRSensor& irSensor0; |
ruesipat | 5:b8b1a979b0d5 | 23 | IRSensor& irSensor1; |
ruesipat | 5:b8b1a979b0d5 | 24 | IRSensor& irSensor2; |
ruesipat | 5:b8b1a979b0d5 | 25 | |
ruesipat | 1:d9e840c48b1e | 26 | int& wallRight; |
ruesipat | 1:d9e840c48b1e | 27 | int& wallFront; |
ruesipat | 1:d9e840c48b1e | 28 | int& wallLeft; |
ruesipat | 1:d9e840c48b1e | 29 | |
ruesipat | 1:d9e840c48b1e | 30 | }; |
ruesipat | 1:d9e840c48b1e | 31 | |
ruesipat | 1:d9e840c48b1e | 32 | #endif /* CHECKWALLS */ |