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

Modules/LEDControl/GT2004LEDControl.h

Go to the documentation of this file.
00001 /**
00002 * @file GT2004LEDControl.h
00003 * 
00004 * This file contains a class for LED Control.
00005 */
00006 
00007 #ifndef __GT2004LEDControl_h_
00008 #define __GT2004LEDControl_h_
00009 
00010 #include "LEDControl.h"
00011 
00012 /** the ATH LED control module for the German Open 2004*/
00013 class GT2004LEDControl : public LEDControl
00014 {
00015 public:
00016 /*
00017 * Constructor.
00018 * @param interfaces The paramters of the LEDControl module.
00019   */
00020   GT2004LEDControl(LEDControlInterfaces& interfaces);
00021 
00022   /** Executes the module. */
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   /** 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// __GT2004LEDControl_h_
00077 
00078 /*
00079  * Change log :
00080  * 
00081  * $Log: GT2004LEDControl.h,v $
00082  * Revision 1.3  2004/06/15 17:49:06  juengel
00083  * Added showMotionProcessFrameLostWarning() and showCognitionProcessFrameLostWarning.
00084  *
00085  * Revision 1.2  2004/06/09 07:46:34  juengel
00086  * Added showFrameLostWarning().
00087  *
00088  * Revision 1.1  2004/05/22 22:16:10  loetzsch
00089  * renamed ATH2004LEDControl to GT2004LEDControl
00090  *
00091  * Revision 1.1.1.1  2004/05/22 17:20:14  cvsadm
00092  * created new repository GT2004_WM
00093  *
00094  * Revision 1.5  2004/03/25 21:20:31  juengel
00095  * Added head LEDs.
00096  *
00097  * Revision 1.4  2004/03/25 19:50:25  juengel
00098  * initialLedCodes are not used any more
00099  *
00100  * Revision 1.3  2004/03/21 19:08:15  juengel
00101  * Added back*White LED support.
00102  *
00103  * Revision 1.2  2004/03/20 17:17:59  juengel
00104  * no message
00105  *
00106  * Revision 1.1  2004/03/16 14:00:21  juengel
00107  * Integrated Improvments from "Günne"
00108  * -ATH2004ERS7Behavior
00109  * -ATHHeadControl
00110  * -KickSelectionTable
00111  * -KickEditor
00112  *
00113  * Revision 1.1  2004/03/15 17:11:39  hoffmann
00114  * - added ATH2004HeadControl
00115  * - added ATH2004LEDControl
00116  * - headmotiontester shows "tilt2"
00117  * - motion process updates odometry while no new robotPose is received, added to motion request
00118  * - some ui adjustments
00119  * - added member function to "field" to find out if robot is in own penalty area for use in the obstacles locator
00120  *
00121  *
00122  */

Generated on Thu Sep 23 19:57:31 2004 for GT2004 by doxygen 1.3.6