Version12.04.18
Dependencies: mbed
Fork of Micromouse_alpha_copy_copy by
CheckWalls.h
- Committer:
- ruesipat
- Date:
- 2018-04-12
- Revision:
- 4:e3f388933954
- Parent:
- 1:d9e840c48b1e
File content as of revision 4:e3f388933954:
#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 */