summaryrefslogtreecommitdiffstats
path: root/source/AVR_Studio/Soccer/sensor/position.h
diff options
context:
space:
mode:
authorsicarius <devnull@localhost>2007-02-15 21:15:02 +0100
committersicarius <devnull@localhost>2007-02-15 21:15:02 +0100
commit8d7053ca84a48fe63736b1ae6225624da7b9be44 (patch)
tree0bf0e68783fcc195feee33f845b65e31e50f2772 /source/AVR_Studio/Soccer/sensor/position.h
parent7393d1d12c3ee23a85978d619768af645137d1ac (diff)
downloadrc2007-soccer-8d7053ca84a48fe63736b1ae6225624da7b9be44.tar
rc2007-soccer-8d7053ca84a48fe63736b1ae6225624da7b9be44.zip
Code-Work :)
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