Antonia Baumgartner / Mbed 2 deprecated Versuch21

Dependencies:   mbed

Fork of Versuch20 by Alexander Wyss

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Spurhaltung.h Source File

Spurhaltung.h

00001 #ifndef SPURHALTUNG_H_
00002 #define SPURHALTUNG_H_
00003 #include <cstdlib>
00004 #include <mbed.h>
00005 #include "Spurhaltung.h"
00006 #include "IRSensorG.h"
00007 
00008 class Spurhaltung {
00009     
00010 
00011 public:
00012     Spurhaltung(IRSensorG& Sensor2, IRSensorG& Sensor3);
00013     virtual ~Spurhaltung();
00014     float read();
00015     int speedl();
00016     int speedr();
00017 
00018     
00019 private:
00020     
00021     IRSensorG& Sensor2;
00022     IRSensorG& Sensor3;
00023     int sr;
00024     int sl;
00025     static const int DISTANCE;
00026     static const float SPEED;
00027     static const int DIFF;
00028     static const int DIFF2;
00029     static const int DIFF3;
00030     static const int OFFSET;
00031     static const int TOLERANCE1;
00032     static const int TOLERANCE2;
00033 
00034 };
00035 
00036 #endif /* SPURHALTUNG_H_ */