Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Versuch20 by
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_ */
Generated on Sun Jul 17 2022 11:46:13 by
