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