summaryrefslogtreecommitdiffstats
path: root/source/AVR_Studio/Soccer/sensor/position.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/AVR_Studio/Soccer/sensor/position.h')
-rwxr-xr-xsource/AVR_Studio/Soccer/sensor/position.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/source/AVR_Studio/Soccer/sensor/position.h b/source/AVR_Studio/Soccer/sensor/position.h
new file mode 100755
index 0000000..4246524
--- /dev/null
+++ b/source/AVR_Studio/Soccer/sensor/position.h
@@ -0,0 +1,34 @@
+#ifndef _POSITION_H_
+#define _POSITION_H_
+
+#include "../hal/maussensor.h"
+#include <math.h>
+
+// Anzahl der Ticks, die für eine ganze Umdrehung notwendig sind
+#define MAUS_FULL_TURN 160000
+
+class Position {
+private:
+ // Maussensorenklassen
+ Maussensor maussensor0;
+ Maussensor maussensor1;
+
+ // X und Y-Koordinate
+ float x;
+ float y;
+ // Und die Ausrichtung als Winkel
+ int ausrichtung;
+public:
+ Position();
+ ~Position();
+
+ // Aktualisiert die Position
+ void Aktualisieren();
+
+ // Gebe die internen Werte zurück
+ int GetX();
+ int GetY();
+ int GetAusrichtung();
+};
+
+#endif