mit pathdingsbums

Dependencies:   mbed

Fork of MicroMouse_MASTER_TWO by PES2_R2D2.0

CheckWalls.h

Committer:
TheDarkDurzo
Date:
2018-05-16
Revision:
8:1c8a747c49c8
Parent:
5:b8b1a979b0d5

File content as of revision 8:1c8a747c49c8:

#ifndef CHECKWALLS_H_
#define CHECKWALLS_H_

#include <cstdlib>
#include <mbed.h>
#include "IRSensor.h"

class CheckWalls
{

public:
    //IRSensor(AnalogIn& distance, DigitalOut& bit0, DigitalOut& bit1, DigitalOut& bit2, int number);
    CheckWalls(IRSensor& irSensor0, IRSensor& irSensor1, IRSensor& irSensor2, int& wallRight, int& wallFront, int& wallLeft);
    virtual ~CheckWalls();
    void check();


private:

    static const float WALL_DISTANCE;

    IRSensor& irSensor0;
    IRSensor& irSensor1;
    IRSensor& irSensor2;
    
    int& wallRight;
    int& wallFront;
    int& wallLeft;

};

#endif /* CHECKWALLS */