summaryrefslogtreecommitdiffstats
path: root/source/AVR_Studio/Soccer/sensor/abstand.h
blob: b22c2f2e7831ac5d680b58eca9d3c4d05590a898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _ABSTAND_H_
#define _ABSTAND_H_

#include "../hal/board.h"

extern Board board;

#define ABSTAND0 0
#define ABSTAND1 1
#define ABSTAND2 2 
#define ABSTAND3 3

#define ABSTAND_FEHLER -1

class Abstand {
private:
	int abstand[4];
public:
	Abstand();
	~Abstand();

	void Aktualisieren();
	int GetAbstand(int i);
};

#endif