This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
rc2007-rescue/Navigation.h
2007-04-03 12:47:03 +00:00

31 lines
553 B
C++

#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);
};