![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
mit pathdingsbums
Dependencies: mbed
Fork of MicroMouse_MASTER_TWO by
Turn.h@8:1c8a747c49c8, 2018-05-16 (annotated)
- Committer:
- TheDarkDurzo
- Date:
- Wed May 16 12:15:23 2018 +0000
- Revision:
- 8:1c8a747c49c8
- Parent:
- 7:5ef09519a6e9
mit pathfinding
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 | int& modeStart; |
TheDarkDurzo | 8:1c8a747c49c8 | 21 | |
TheDarkDurzo | 8:1c8a747c49c8 | 22 | int& path; |
TheDarkDurzo | 8:1c8a747c49c8 | 23 | |
TheDarkDurzo | 8:1c8a747c49c8 | 24 | |
ruesipat | 1:d9e840c48b1e | 25 | |
ruesipat | 1:d9e840c48b1e | 26 | private: |
ruesipat | 1:d9e840c48b1e | 27 | |
ruesipat | 1:d9e840c48b1e | 28 | static const float TURNINGSPEED; |
ruesipat | 1:d9e840c48b1e | 29 | static const int TURNINGCOUNTS; |
ruesipat | 1:d9e840c48b1e | 30 | |
ruesipat | 1:d9e840c48b1e | 31 | EncoderCounter& counterLeft; |
ruesipat | 1:d9e840c48b1e | 32 | EncoderCounter& counterRight; |
ruesipat | 1:d9e840c48b1e | 33 | Controller& controller; |
ruesipat | 1:d9e840c48b1e | 34 | int& wallRight; |
ruesipat | 1:d9e840c48b1e | 35 | int& wallFront; |
ruesipat | 1:d9e840c48b1e | 36 | int& wallLeft; |
ruesipat | 7:5ef09519a6e9 | 37 | int& dontStop; |
TheDarkDurzo | 8:1c8a747c49c8 | 38 | |
ruesipat | 1:d9e840c48b1e | 39 | }; |
ruesipat | 1:d9e840c48b1e | 40 | |
ruesipat | 1:d9e840c48b1e | 41 | #endif /* TURN_H_ */ |