GT2004LEDControl Class Reference

#include <GT2004LEDControl.h>

Inheritance diagram for GT2004LEDControl:

LEDControl Module LEDControlInterfaces MessageHandler List of all members.

Public Member Functions

 GT2004LEDControl (LEDControlInterfaces &interfaces)
virtual void execute ()

Private Types

 off = 0
 headOrange = 0x00000001
 headWhite = 0x00000002
 modeRed = 0x00000004
 modeGreen = 0x00000008
 modeBlue = 0x00000010
 wireless = 0x00000020
 face1 = 0x00000040
 face2 = 0x00000080
 face3 = 0x00000100
 face4 = 0x00000200
 face5 = 0x00000400
 face6 = 0x00000800
 face7 = 0x00001000
 face8 = 0x00002000
 face9 = 0x00004000
 face10 = 0x00008000
 face11 = 0x00010000
 face12 = 0x00020000
 face13 = 0x00040000
 face14 = 0x00080000
 backFrontBlue = 0x00100000
 backFrontWhite = 0x00200000
 backMiddleOrange = 0x00400000
 backMiddleWhite = 0x00800000
 backRearRed = 0x01000000
 backRearWhite = 0x02000000
enum  Ers7LEDs {
  off = 0, headOrange = 0x00000001, headWhite = 0x00000002, modeRed = 0x00000004,
  modeGreen = 0x00000008, modeBlue = 0x00000010, wireless = 0x00000020, face1 = 0x00000040,
  face2 = 0x00000080, face3 = 0x00000100, face4 = 0x00000200, face5 = 0x00000400,
  face6 = 0x00000800, face7 = 0x00001000, face8 = 0x00002000, face9 = 0x00004000,
  face10 = 0x00008000, face11 = 0x00010000, face12 = 0x00020000, face13 = 0x00040000,
  face14 = 0x00080000, backFrontBlue = 0x00100000, backFrontWhite = 0x00200000, backMiddleOrange = 0x00400000,
  backMiddleWhite = 0x00800000, backRearRed = 0x01000000, backRearWhite = 0x02000000
}

Private Member Functions

void showWLANStatus ()
void showGameRelated ()
void showBatteryState ()
void showRequestedFaceLEDs ()
void showRequestedBackWhiteLEDs ()
void showRequestedBackColoredLEDs ()
void showRequestedHeadLEDs ()
void showMotionProcessFrameLostWarning ()
void showCognitionProcessFrameLostWarning ()

Private Attributes

int executeCallCount
int ledCode
unsigned long int lastMotionFrameNumber

Detailed Description

the ATH LED control module for the German Open 2004

Definition at line 13 of file GT2004LEDControl.h.


Member Enumeration Documentation

enum GT2004LEDControl::Ers7LEDs [private]

Enumerator:
off 
headOrange 
headWhite 
modeRed 
modeGreen 
modeBlue 
wireless 
face1 
face2 
face3 
face4 
face5 
face6 
face7 
face8 
face9 
face10 
face11 
face12 
face13 
face14 
backFrontBlue 
backFrontWhite 
backMiddleOrange 
backMiddleWhite 
backRearRed 
backRearWhite 

Definition at line 43 of file GT2004LEDControl.h.


Constructor & Destructor Documentation

GT2004LEDControl::GT2004LEDControl ( LEDControlInterfaces interfaces  ) 

Definition at line 23 of file GT2004LEDControl.cpp.


Member Function Documentation

void GT2004LEDControl::execute (  )  [virtual]

Executes the module.

Implements Module.

Definition at line 241 of file GT2004LEDControl.cpp.

References LEDValue::data, executeCallCount, ledCode, LEDControlInterfaces::ledValue, off, showBatteryState(), showCognitionProcessFrameLostWarning(), showMotionProcessFrameLostWarning(), showRequestedBackColoredLEDs(), showRequestedBackWhiteLEDs(), showRequestedFaceLEDs(), showRequestedHeadLEDs(), and showWLANStatus().

void GT2004LEDControl::showBatteryState (  )  [private]

Definition at line 139 of file GT2004LEDControl.cpp.

References executeCallCount, SystemCall::getRemainingPower(), ledCode, and wireless.

Referenced by execute().

void GT2004LEDControl::showCognitionProcessFrameLostWarning (  )  [private]

Definition at line 200 of file GT2004LEDControl.cpp.

References face10, face11, face12, face5, face6, face7, face8, face9, ledCode, LEDControlInterfaces::ledRequest, and LEDRequest::showCognitionFrameLostWarning.

Referenced by execute().

void GT2004LEDControl::showGameRelated (  )  [private]

void GT2004LEDControl::showMotionProcessFrameLostWarning (  )  [private]

Definition at line 226 of file GT2004LEDControl.cpp.

References backFrontBlue, backFrontWhite, backMiddleOrange, backMiddleWhite, backRearRed, backRearWhite, LEDControlInterfaces::frameNumber, lastMotionFrameNumber, and ledCode.

Referenced by execute().

void GT2004LEDControl::showRequestedBackColoredLEDs (  )  [private]

Definition at line 108 of file GT2004LEDControl.cpp.

References backFrontBlue, LEDRequest::backFrontBlueLED, backMiddleOrange, LEDRequest::backMiddleOrangeLED, backRearRed, LEDRequest::backRearRedLED, executeCallCount, int(), ledCode, and LEDControlInterfaces::ledRequest.

Referenced by execute().

void GT2004LEDControl::showRequestedBackWhiteLEDs (  )  [private]

Definition at line 79 of file GT2004LEDControl.cpp.

References backFrontWhite, LEDRequest::backFrontWhiteLED, backMiddleWhite, LEDRequest::backMiddleWhiteLED, backRearWhite, LEDRequest::backRearWhiteLED, executeCallCount, int(), ledCode, and LEDControlInterfaces::ledRequest.

Referenced by execute().

void GT2004LEDControl::showRequestedFaceLEDs (  )  [private]

Definition at line 54 of file GT2004LEDControl.cpp.

References executeCallCount, face1, LEDRequest::faceLED, ledCode, and LEDControlInterfaces::ledRequest.

Referenced by execute().

void GT2004LEDControl::showRequestedHeadLEDs (  )  [private]

Definition at line 29 of file GT2004LEDControl.cpp.

References executeCallCount, headOrange, LEDRequest::headOrangeLED, headWhite, LEDRequest::headWhiteLED, int(), ledCode, and LEDControlInterfaces::ledRequest.

Referenced by execute().

void GT2004LEDControl::showWLANStatus (  )  [private]

Definition at line 158 of file GT2004LEDControl.cpp.

References executeCallCount, ledCode, modeBlue, modeGreen, modeRed, and LEDControlInterfaces::wLanStatus.

Referenced by execute().


Member Data Documentation

int GT2004LEDControl::executeCallCount [private]

Internal call counter.

Definition at line 37 of file GT2004LEDControl.h.

Referenced by execute(), showBatteryState(), showRequestedBackColoredLEDs(), showRequestedBackWhiteLEDs(), showRequestedFaceLEDs(), showRequestedHeadLEDs(), and showWLANStatus().

unsigned long int GT2004LEDControl::lastMotionFrameNumber [private]

Definition at line 41 of file GT2004LEDControl.h.

Referenced by showMotionProcessFrameLostWarning().

int GT2004LEDControl::ledCode [private]

Definition at line 39 of file GT2004LEDControl.h.

Referenced by execute(), showBatteryState(), showCognitionProcessFrameLostWarning(), showMotionProcessFrameLostWarning(), showRequestedBackColoredLEDs(), showRequestedBackWhiteLEDs(), showRequestedFaceLEDs(), showRequestedHeadLEDs(), and showWLANStatus().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:34:53 2006 for DT2005.panorama by  doxygen 1.4.7