summaryrefslogtreecommitdiffstats
path: root/source/AVR_Studio/Soccer/sensor
diff options
context:
space:
mode:
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