diff options
author | neoraider <devnull@localhost> | 2007-04-03 14:47:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-04-03 14:47:03 +0200 |
commit | 98c623dc8969151c0872a2d102d486f9a735d614 (patch) | |
tree | c9746d588928c618c6687e719a910350f8c070b5 /Navigation.h | |
download | rc2007-rescue-old-98c623dc8969151c0872a2d102d486f9a735d614.tar rc2007-rescue-old-98c623dc8969151c0872a2d102d486f9a735d614.zip |
Diffstat (limited to 'Navigation.h')
-rw-r--r-- | Navigation.h | 31 |
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);
+};
|