blob: 7f258697c21543049778242dfbb7edaf0a321770 (
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
27
28
29
30
31
|
#ifndef _ROBOCUP_TCS230_H_
#define _ROBOCUP_TCS230_H_
enum Tcs230Colors {
Red = 0, Blue = 1, Clear = 2, Green = 3
};
enum Tcs230Scalings {
Off = 0, TwoPercent = 1, TwentyPercent = 2, Full = 3
};
class Tcs230
{
private:
bool enabled;
Tcs230Colors color;
Tcs230Scalings scaling;
public:
Tcs230();
bool getEnabled() {return enabled;}
void setEnabled(bool enabled);
Tcs230Colors getColor() {return color;}
void setColor(Tcs230Colors color);
Tcs230Scalings getScaling() {return scaling;}
void setScaling(Tcs230Scalings scaling);
};
#endif
|