Added lot's of code-files used during work

This commit is contained in:
sicarius 2007-02-11 19:03:00 +00:00
parent 1a6b28b1c2
commit 05c8b0af60
30 changed files with 2599 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#include "ballsensor.h"
Ballsensor::Ballsensor() {
}
Ballsensor::~Ballsensor() {
}
int Ballsensor::getBallwinkel() {
return 0;
}

View file

@ -0,0 +1,18 @@
#ifndef _BALLSENSOR_H_
#define _BALLSENSOR_H_
#include "../hal/board.h"
extern Board board;
class Ballsensor
{
private:
public:
Ballsensor();
~Ballsensor();
int getBallwinkel(); // Gibt den aktuellen Winkel vom Ball zurück
};
#endif

View file

@ -0,0 +1,15 @@
#include "sensor.h"
Sensor::Sensor() :ballsensor() {
//ballsensor = new Ballsensor;
}
Sensor::~Sensor() {
}
void Sensor::Aktualisieren() {
}
int Sensor::getAusrichtung() {
return 0;
}

View file

@ -0,0 +1,23 @@
#ifndef _SENSOR_H_
#define _SENSOR_H_
#include "../hal/board.h"
#include "ballsensor.h"
#include "../global.h"
extern Board board;
class Sensor
{
private:
Ballsensor ballsensor;
public:
Sensor();
~Sensor();
void Aktualisieren();
int getAusrichtung(); // Gibt die aktuelle Ausrichtung des Roboters zurück
};
#endif