![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
mit pathdingsbums
Dependencies: mbed
Fork of MicroMouse_MASTER_TWO by
CheckWalls.h
- Committer:
- ruesipat
- Date:
- 2018-03-31
- Revision:
- 1:d9e840c48b1e
- Child:
- 5:b8b1a979b0d5
File content as of revision 1:d9e840c48b1e:
#ifndef CHECKWALLS_H_ #define CHECKWALLS_H_ #include <cstdlib> #include <mbed.h> class CheckWalls { public: //IRSensor(AnalogIn& distance, DigitalOut& bit0, DigitalOut& bit1, DigitalOut& bit2, int number); CheckWalls(float distanceRight, float distanceFront, float distanceLeftFront, int& wallRight, int& wallFront, int& wallLeft); virtual ~CheckWalls(); void check(); private: static const float WALL_DISTANCE; float distanceRight; float distanceFront; float distanceLeftFront; int& wallRight; int& wallFront; int& wallLeft; }; #endif /* CHECKWALLS */