00001
00002
00003
00004
00005
00006
00007 #ifndef __GT2004LEDControl_h_
00008 #define __GT2004LEDControl_h_
00009
00010 #include "LEDControl.h"
00011
00012
00013 class GT2004LEDControl : public LEDControl
00014 {
00015 public:
00016
00017
00018
00019
00020 GT2004LEDControl(LEDControlInterfaces& interfaces);
00021
00022
00023 virtual void execute();
00024
00025 private:
00026 void showWLANStatus();
00027 void showGameRelated();
00028 void showBatteryState();
00029 void showRequestedFaceLEDs();
00030 void showRequestedBackWhiteLEDs();
00031 void showRequestedBackColoredLEDs();
00032 void showRequestedHeadLEDs();
00033 void showMotionProcessFrameLostWarning();
00034 void showCognitionProcessFrameLostWarning();
00035
00036
00037 int executeCallCount;
00038
00039 int ledCode;
00040
00041 unsigned long int lastMotionFrameNumber;
00042
00043 enum Ers7LEDs
00044 {
00045 off = 0,
00046 headOrange = 0x00000001,
00047 headWhite = 0x00000002,
00048 modeRed = 0x00000004,
00049 modeGreen = 0x00000008,
00050 modeBlue = 0x00000010,
00051 wireless = 0x00000020,
00052 face1 = 0x00000040,
00053 face2 = 0x00000080,
00054 face3 = 0x00000100,
00055 face4 = 0x00000200,
00056 face5 = 0x00000400,
00057 face6 = 0x00000800,
00058 face7 = 0x00001000,
00059 face8 = 0x00002000,
00060 face9 = 0x00004000,
00061 face10 = 0x00008000,
00062 face11 = 0x00010000,
00063 face12 = 0x00020000,
00064 face13 = 0x00040000,
00065 face14 = 0x00080000,
00066 backFrontBlue = 0x00100000,
00067 backFrontWhite = 0x00200000,
00068 backMiddleOrange = 0x00400000,
00069 backMiddleWhite = 0x00800000,
00070 backRearRed = 0x01000000,
00071 backRearWhite = 0x02000000
00072 };
00073
00074 };
00075
00076 #endif// __GT2004LEDControl_h_
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122