summaryrefslogtreecommitdiffstats
path: root/Navigation.h
diff options
context:
space:
mode:
Diffstat (limited to 'Navigation.h')
-rw-r--r--Navigation.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Navigation.h b/Navigation.h
new file mode 100644
index 0000000..3f3f1ec
--- /dev/null
+++ b/Navigation.h
@@ -0,0 +1,31 @@
+#include "qfixSoccerBoard.h"
+#include "Global.h"
+
+
+// Physikalische Motorausgänge
+#define MOTOR_PORT_LINKS 0
+#define MOTOR_PORT_RECHTS 1
+
+
+class Navigation {
+ private:
+ SoccerBoard *m_board;
+ bool m_gestartet;
+ int m_speed;
+ int m_richtung;
+ public:
+ Navigation(SoccerBoard *board) {
+ m_gestartet = false;
+ m_speed = DEFAULT_SPEED;
+ m_richtung = 0;
+
+ m_board = board;
+ }
+
+ int getRichtung() {return m_richtung;}
+
+ void start();
+ void stop();
+ void setSpeed(int speed);
+ void setRichtung(int richtung);
+};