Algorithmus

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IRSensor.h Source File

IRSensor.h

00001 #ifndef IR_SENSOR_H_
00002 #define IR_SENSOR_H_
00003 
00004 #include <cstdlib>
00005 #include <mbed.h>
00006 
00007 class IRSensor {
00008     
00009 public:
00010     IRSensor (AnalogIn& distance);
00011                 
00012     virtual ~IRSensor();
00013     float readL();
00014     float readR();
00015     float readC();
00016     float readB();
00017 private:
00018     AnalogIn& distance;
00019 };
00020 
00021 #endif /* IR_SENSOR H */
00022