diff options
Diffstat (limited to 'source/AVR_Studio/Soccer/sensor/abstand.h')
-rwxr-xr-x | source/AVR_Studio/Soccer/sensor/abstand.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source/AVR_Studio/Soccer/sensor/abstand.h b/source/AVR_Studio/Soccer/sensor/abstand.h new file mode 100755 index 0000000..b22c2f2 --- /dev/null +++ b/source/AVR_Studio/Soccer/sensor/abstand.h @@ -0,0 +1,26 @@ +#ifndef _ABSTAND_H_
+#define _ABSTAND_H_
+
+#include "../hal/board.h"
+
+extern Board board;
+
+#define ABSTAND0 0
+#define ABSTAND1 1
+#define ABSTAND2 2
+#define ABSTAND3 3
+
+#define ABSTAND_FEHLER -1
+
+class Abstand {
+private:
+ int abstand[4];
+public:
+ Abstand();
+ ~Abstand();
+
+ void Aktualisieren();
+ int GetAbstand(int i);
+};
+
+#endif
|