This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
rc2007-soccer/source/AVR_Studio/Soccer/sensor/ballsensor.h

25 lines
417 B
C
Raw Permalink Normal View History

#ifndef _BALLSENSOR_H_
#define _BALLSENSOR_H_
#include "../hal/board.h"
2007-02-13 19:10:02 +00:00
// Anzahl der Ballsensoren
#define NUM_BALLSENSOR 8
extern Board board;
class Ballsensor
{
private:
2007-02-13 19:10:02 +00:00
int winkel[NUM_BALLSENSOR];
2007-02-14 17:47:03 +00:00
int ballwinkel;
public:
Ballsensor();
~Ballsensor();
2007-02-14 17:47:03 +00:00
int GetBallwinkel(); // Gibt den aktuellen Winkel vom Ball zur<75>ck
void Aktualisieren(); // Aktualisiert die Variable
};
#endif