![](/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-25
- Revision:
- 5:b8b1a979b0d5
- Parent:
- 4:e3f388933954
- Child:
- 7:5ef09519a6e9
File content as of revision 5:b8b1a979b0d5:
#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, IRSensor& irSensor0, IRSensor& irSensor1, IRSensor& irSensor2, IRSensor& irSensor3); virtual ~Drive(); void driving(); private: static const float FRONTDISTANCE; static const float DRIVINGSPEED; static const int DRIVINGCOUNTS; float difference; KontrastSensor& kontrastSensor; EncoderCounter& counterLeft; EncoderCounter& counterRight; Controller& controller; IRSensor& irSensor0; IRSensor& irSensor1; IRSensor& irSensor2; IRSensor& irSensor3; }; #endif /* DRIVE_H_ */