Alle Prinf's auskommentiert

Dependencies:   mbed

Fork of Micromouse by Helvijs Kiselis

IRSensor.h

Committer:
Helvis
Date:
2018-04-19
Revision:
1:2b5f79285a3e
Child:
10:84534846e1f1

File content as of revision 1:2b5f79285a3e:

#ifndef IR_SENSOR_H_
#define IR_SENSOR_H_

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

class IRSensor {
    
public:
    IRSensor (AnalogIn& distance);
                
    virtual ~IRSensor();
    float readL();
    float readR();
    float readC();
    float readB();
private:
    AnalogIn& distance;
};

#endif /* IR_SENSOR H */