![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Version12.04.18
Fork of Micromouse_beta by
Diff: CheckWalls.h
- Revision:
- 1:d9e840c48b1e
diff -r a9fe4ef404bf -r d9e840c48b1e CheckWalls.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CheckWalls.h Sat Mar 31 16:45:57 2018 +0000 @@ -0,0 +1,30 @@ +#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 */ \ No newline at end of file