Version12.04.18
Dependencies: mbed
Fork of Micromouse_alpha_copy_copy by
Diff: Turn.h
- Revision:
- 1:d9e840c48b1e
diff -r a9fe4ef404bf -r d9e840c48b1e Turn.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Turn.h Sat Mar 31 16:45:57 2018 +0000 @@ -0,0 +1,33 @@ +#ifndef TURN_H_ +#define TURN_H_ + +#include <cstdlib> +#include <mbed.h> +#include "EncoderCounter.h" +#include "LowpassFilter.h" +#include "Controller.h" + +class Turn +{ + +public: + + Turn(EncoderCounter& counterLeft, EncoderCounter& counterRight, Controller& controller, int& wallRight, int& wallFront, int& wallLeft); + + virtual ~Turn(); + void turning(); + +private: + + static const float TURNINGSPEED; + static const int TURNINGCOUNTS; + + EncoderCounter& counterLeft; + EncoderCounter& counterRight; + Controller& controller; + int& wallRight; + int& wallFront; + int& wallLeft; +}; + +#endif /* TURN_H_ */ \ No newline at end of file