summaryrefslogtreecommitdiffstats
path: root/Navigation.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-04-03 14:47:03 +0200
committerneoraider <devnull@localhost>2007-04-03 14:47:03 +0200
commit98c623dc8969151c0872a2d102d486f9a735d614 (patch)
treec9746d588928c618c6687e719a910350f8c070b5 /Navigation.h
downloadrc2007-rescue-old-master.tar
rc2007-rescue-old-master.zip
Neues Rescue-Programm angefangenHEADmaster
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);
+};