diff options
author | sicarius <devnull@localhost> | 2007-02-15 21:15:02 +0100 |
---|---|---|
committer | sicarius <devnull@localhost> | 2007-02-15 21:15:02 +0100 |
commit | 8d7053ca84a48fe63736b1ae6225624da7b9be44 (patch) | |
tree | 0bf0e68783fcc195feee33f845b65e31e50f2772 /source/AVR_Studio/Soccer/sensor/abstand.h | |
parent | 7393d1d12c3ee23a85978d619768af645137d1ac (diff) | |
download | rc2007-soccer-8d7053ca84a48fe63736b1ae6225624da7b9be44.tar rc2007-soccer-8d7053ca84a48fe63736b1ae6225624da7b9be44.zip |
Code-Work :)
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
|