From 05c8b0af602b222d00c227560682158333b726a2 Mon Sep 17 00:00:00 2001 From: sicarius Date: Sun, 11 Feb 2007 19:03:00 +0000 Subject: Added lot's of code-files used during work --- source/AVR_Studio/Soccer/sensor/ballsensor.c | 11 +++++++++++ source/AVR_Studio/Soccer/sensor/ballsensor.h | 18 ++++++++++++++++++ source/AVR_Studio/Soccer/sensor/sensor.c | 15 +++++++++++++++ source/AVR_Studio/Soccer/sensor/sensor.h | 23 +++++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100755 source/AVR_Studio/Soccer/sensor/ballsensor.c create mode 100755 source/AVR_Studio/Soccer/sensor/ballsensor.h create mode 100755 source/AVR_Studio/Soccer/sensor/sensor.c create mode 100755 source/AVR_Studio/Soccer/sensor/sensor.h (limited to 'source/AVR_Studio/Soccer/sensor') diff --git a/source/AVR_Studio/Soccer/sensor/ballsensor.c b/source/AVR_Studio/Soccer/sensor/ballsensor.c new file mode 100755 index 0000000..bf97f99 --- /dev/null +++ b/source/AVR_Studio/Soccer/sensor/ballsensor.c @@ -0,0 +1,11 @@ +#include "ballsensor.h" + +Ballsensor::Ballsensor() { +} + +Ballsensor::~Ballsensor() { +} + +int Ballsensor::getBallwinkel() { + return 0; +} diff --git a/source/AVR_Studio/Soccer/sensor/ballsensor.h b/source/AVR_Studio/Soccer/sensor/ballsensor.h new file mode 100755 index 0000000..46daf90 --- /dev/null +++ b/source/AVR_Studio/Soccer/sensor/ballsensor.h @@ -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 diff --git a/source/AVR_Studio/Soccer/sensor/sensor.c b/source/AVR_Studio/Soccer/sensor/sensor.c new file mode 100755 index 0000000..a1730db --- /dev/null +++ b/source/AVR_Studio/Soccer/sensor/sensor.c @@ -0,0 +1,15 @@ +#include "sensor.h" + +Sensor::Sensor() :ballsensor() { + //ballsensor = new Ballsensor; +} +Sensor::~Sensor() { +} + +void Sensor::Aktualisieren() { + +} + +int Sensor::getAusrichtung() { + return 0; +} diff --git a/source/AVR_Studio/Soccer/sensor/sensor.h b/source/AVR_Studio/Soccer/sensor/sensor.h new file mode 100755 index 0000000..25d36c2 --- /dev/null +++ b/source/AVR_Studio/Soccer/sensor/sensor.h @@ -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 -- cgit v1.2.3