From e7e1634240c78c7abbdc7fc6e0af1beddaea1d45 Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 17 Apr 2007 22:10:05 +0000 Subject: Linienverfolgung implementiert --- Tcs230.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Tcs230.h (limited to 'Tcs230.h') diff --git a/Tcs230.h b/Tcs230.h new file mode 100644 index 0000000..7f25869 --- /dev/null +++ b/Tcs230.h @@ -0,0 +1,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 -- cgit v1.2.3