Added lot's of code-files used during work
This commit is contained in:
parent
1a6b28b1c2
commit
05c8b0af60
30 changed files with 2599 additions and 0 deletions
11
source/AVR_Studio/Soccer/sensor/ballsensor.c
Executable file
11
source/AVR_Studio/Soccer/sensor/ballsensor.c
Executable file
|
@ -0,0 +1,11 @@
|
|||
#include "ballsensor.h"
|
||||
|
||||
Ballsensor::Ballsensor() {
|
||||
}
|
||||
|
||||
Ballsensor::~Ballsensor() {
|
||||
}
|
||||
|
||||
int Ballsensor::getBallwinkel() {
|
||||
return 0;
|
||||
}
|
18
source/AVR_Studio/Soccer/sensor/ballsensor.h
Executable file
18
source/AVR_Studio/Soccer/sensor/ballsensor.h
Executable 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
|
15
source/AVR_Studio/Soccer/sensor/sensor.c
Executable file
15
source/AVR_Studio/Soccer/sensor/sensor.c
Executable file
|
@ -0,0 +1,15 @@
|
|||
#include "sensor.h"
|
||||
|
||||
Sensor::Sensor() :ballsensor() {
|
||||
//ballsensor = new Ballsensor;
|
||||
}
|
||||
Sensor::~Sensor() {
|
||||
}
|
||||
|
||||
void Sensor::Aktualisieren() {
|
||||
|
||||
}
|
||||
|
||||
int Sensor::getAusrichtung() {
|
||||
return 0;
|
||||
}
|
23
source/AVR_Studio/Soccer/sensor/sensor.h
Executable file
23
source/AVR_Studio/Soccer/sensor/sensor.h
Executable 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
|
Reference in a new issue