![](/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
Turn.h@9:ab19796bf14a, 2018-05-16 (annotated)
- Committer:
- ruesipat
- Date:
- Wed May 16 16:41:44 2018 +0000
- Revision:
- 9:ab19796bf14a
- Parent:
- 8:1c8a747c49c8
;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ruesipat | 1:d9e840c48b1e | 1 | #ifndef TURN_H_ |
ruesipat | 1:d9e840c48b1e | 2 | #define TURN_H_ |
ruesipat | 1:d9e840c48b1e | 3 | |
ruesipat | 1:d9e840c48b1e | 4 | #include <cstdlib> |
ruesipat | 1:d9e840c48b1e | 5 | #include <mbed.h> |
ruesipat | 1:d9e840c48b1e | 6 | #include "EncoderCounter.h" |
ruesipat | 1:d9e840c48b1e | 7 | #include "LowpassFilter.h" |
ruesipat | 1:d9e840c48b1e | 8 | #include "Controller.h" |
ruesipat | 1:d9e840c48b1e | 9 | |
ruesipat | 1:d9e840c48b1e | 10 | class Turn |
ruesipat | 1:d9e840c48b1e | 11 | { |
ruesipat | 1:d9e840c48b1e | 12 | |
ruesipat | 1:d9e840c48b1e | 13 | public: |
ruesipat | 1:d9e840c48b1e | 14 | |
TheDarkDurzo | 8:1c8a747c49c8 | 15 | Turn(EncoderCounter& counterLeft, EncoderCounter& counterRight, Controller& controller, int& wallRight, int& wallFront, int& wallLeft, int& dontStop, int& modeStart,int& path); |
ruesipat | 1:d9e840c48b1e | 16 | |
ruesipat | 1:d9e840c48b1e | 17 | virtual ~Turn(); |
ruesipat | 1:d9e840c48b1e | 18 | void turning(); |
TheDarkDurzo | 8:1c8a747c49c8 | 19 | |
TheDarkDurzo | 8:1c8a747c49c8 | 20 | |
TheDarkDurzo | 8:1c8a747c49c8 | 21 | |
ruesipat | 1:d9e840c48b1e | 22 | |
ruesipat | 1:d9e840c48b1e | 23 | private: |
ruesipat | 1:d9e840c48b1e | 24 | |
ruesipat | 1:d9e840c48b1e | 25 | static const float TURNINGSPEED; |
ruesipat | 1:d9e840c48b1e | 26 | static const int TURNINGCOUNTS; |
ruesipat | 1:d9e840c48b1e | 27 | |
ruesipat | 1:d9e840c48b1e | 28 | EncoderCounter& counterLeft; |
ruesipat | 1:d9e840c48b1e | 29 | EncoderCounter& counterRight; |
ruesipat | 1:d9e840c48b1e | 30 | Controller& controller; |
ruesipat | 1:d9e840c48b1e | 31 | int& wallRight; |
ruesipat | 1:d9e840c48b1e | 32 | int& wallFront; |
ruesipat | 1:d9e840c48b1e | 33 | int& wallLeft; |
ruesipat | 7:5ef09519a6e9 | 34 | int& dontStop; |
ruesipat | 9:ab19796bf14a | 35 | int& modeStart; |
ruesipat | 9:ab19796bf14a | 36 | int& path; |
TheDarkDurzo | 8:1c8a747c49c8 | 37 | |
ruesipat | 1:d9e840c48b1e | 38 | }; |
ruesipat | 1:d9e840c48b1e | 39 | |
ruesipat | 1:d9e840c48b1e | 40 | #endif /* TURN_H_ */ |