PES2_R2D2.0 / Mbed 2 deprecated MicroMouse_MASTER_FIVE

Dependencies:   mbed

Fork of MicroMouse_MASTER_FOUR by PES2_R2D2.0

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CheckWalls.h Source File

CheckWalls.h

00001 #ifndef CHECKWALLS_H_
00002 #define CHECKWALLS_H_
00003 
00004 #include <cstdlib>
00005 #include <mbed.h>
00006 #include "IRSensor.h"
00007 
00008 class CheckWalls
00009 {
00010 
00011 public:
00012     //IRSensor(AnalogIn& distance, DigitalOut& bit0, DigitalOut& bit1, DigitalOut& bit2, int number);
00013     CheckWalls(IRSensor& irSensor0, IRSensor& irSensor1, IRSensor& irSensor2, int& wallRight, int& wallFront, int& wallLeft);
00014     virtual ~CheckWalls();
00015     void check();
00016 
00017 
00018 private:
00019 
00020     static const float WALL_DISTANCE;
00021 
00022     IRSensor& irSensor0;
00023     IRSensor& irSensor1;
00024     IRSensor& irSensor2;
00025     
00026     int& wallRight;
00027     int& wallFront;
00028     int& wallLeft;
00029 
00030 };
00031 
00032 #endif /* CHECKWALLS */