![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
mit pathdingsbums
Dependencies: mbed
Fork of MicroMouse_MASTER_TWO by
Drive.h
- Committer:
- ruesipat
- Date:
- 2018-04-04
- Revision:
- 2:592f01278db4
- Parent:
- 1:d9e840c48b1e
- Child:
- 3:2ec7cf8bc3fc
File content as of revision 2:592f01278db4:
#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, float distanceLeftBack); virtual ~Drive(); void driving(); private: static const float DRIVINGSPEED; static const int DRIVINGCOUNTS; float difference; KontrastSensor& kontrastSensor; EncoderCounter& counterLeft; EncoderCounter& counterRight; Controller& controller; float distanceRight; float distanceFront; float distanceLeftFront; float distanceLeftBack; }; #endif /* DRIVE_H_ */