Helvijs Kiselis
/
MicromousePES2
main.cpp: Sensoren einlesen und Motoren ansteuern
Embed:
(wiki syntax)
Show/hide line numbers
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
Generated on Sun Jul 17 2022 07:14:38 by 1.7.2