Helvijs Kiselis
/
Micromouse
Algorithmus
IRSensor.h
- Committer:
- luethale
- Date:
- 2018-06-30
- Revision:
- 36:99f60052c746
- Parent:
- 1:2b5f79285a3e
- Child:
- 10:84534846e1f1
File content as of revision 36:99f60052c746:
#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 */