![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Version12.04.18
Fork of Micromouse_beta by
Diff: Drive.h
- Revision:
- 1:d9e840c48b1e
- Child:
- 2:592f01278db4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Drive.h Sat Mar 31 16:45:57 2018 +0000 @@ -0,0 +1,34 @@ +#ifndef DRIVE_H_ +#define DRIVE_H_ + +#include <cstdlib> +#include <mbed.h> +#include "IRSensor.h" +#include "Controller.h" +#include "EncoderCounter.h" +#include "KontrastSensor.h" + +class Drive +{ + +public: + + Drive(KontrastSensor& kontrastSensor, EncoderCounter& counterLeft, EncoderCounter& counterRight, Controller& controller, float distanceRight, float distanceFront, float distanceLeftFront); + virtual ~Drive(); + void driving(); +private: + + static const float DRIVINGSPEED; + static const int DRIVINGCOUNTS; + + KontrastSensor& kontrastSensor; + EncoderCounter& counterLeft; + EncoderCounter& counterRight; + Controller& controller; + float distanceRight; + float distanceFront; + float distanceLeftFront; + +}; + +#endif /* DRIVE_H_ */ \ No newline at end of file