Helvijs Kiselis
/
Micromouse
Algorithmus
Diff: IRSensor.h
- Revision:
- 1:2b5f79285a3e
- Child:
- 10:84534846e1f1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IRSensor.h Thu Apr 19 06:19:43 2018 +0000 @@ -0,0 +1,22 @@ +#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 */ + \ No newline at end of file