summaryrefslogtreecommitdiffstats
path: root/source/AVR_Studio/Soccer/sensor
diff options
context:
space:
mode:
authorsicarius <devnull@localhost>2007-02-11 20:03:00 +0100
committersicarius <devnull@localhost>2007-02-11 20:03:00 +0100
commit05c8b0af602b222d00c227560682158333b726a2 (patch)
tree98a7eaa96222097b9d74343b37447820f9250efc /source/AVR_Studio/Soccer/sensor
parent1a6b28b1c2a68cfccbe8f4ed9866aadf88db7085 (diff)
downloadrc2007-soccer-05c8b0af602b222d00c227560682158333b726a2.tar
rc2007-soccer-05c8b0af602b222d00c227560682158333b726a2.zip
Added lot's of code-files used during work
Diffstat (limited to 'source/AVR_Studio/Soccer/sensor')
-rwxr-xr-xsource/AVR_Studio/Soccer/sensor/ballsensor.c11
-rwxr-xr-xsource/AVR_Studio/Soccer/sensor/ballsensor.h18
-rwxr-xr-xsource/AVR_Studio/Soccer/sensor/sensor.c15
-rwxr-xr-xsource/AVR_Studio/Soccer/sensor/sensor.h23
4 files changed, 67 insertions, 0 deletions
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