Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# Modules/LEDControl/GT2005LEDControl.h

Go to the documentation of this file.

    00001 /**
    00002 * @file GT2005LEDControl.h
    00003 *
    00004 * This file contains a class for LED Control.
    00005 */
    00006
    00007 #ifndef __GT2005LEDControl_h_
    00008 #define __GT2005LEDControl_h_
    00009
    00010 #include "LEDControl.h"
    00011
    00012 class GT2005LEDControl : public LEDControl
    00013 {
    00014 public:
    00015 /*
    00016 * Constructor.
    00017 * @param interfaces The paramters of the LEDControl module.
    00018   */
    00019   GT2005LEDControl(LEDControlInterfaces& interfaces);
    00020
    00021   /** Executes the module. */
    00022   virtual void execute();
    00023
    00024 private:
    00025   void showWLANStatus();
    00026   void showCognitionFps();
    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   /** Internal call counter. */
    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// __GT2005LEDControl_h_