summaryrefslogtreecommitdiffstats
path: root/Navigation.h
blob: 3f3f1ec96f192be20a1bf511395187e3644d6b98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
};