#include <aiboled.h>
Collaboration diagram for AiboLed:
Public Member Functions | |
AiboLed () | |
virtual | ~AiboLed () |
Methods for led primitives | |
void | OpenPrimitives () |
Methods for command vectors | |
RCRegion * | FindFreeRegion () const |
int | FindFreeRegionIndex () const |
RCRegion * | GetRegion (int index=0) |
int | GetValidRegions () const |
void | NewCommandVectorData (int numVecs=1) |
void | SetCommandVector (int index, OCommandVectorData *vec) |
Methods for LED manipulation | |
void | SetLed (LED led, bool on, int time, int cmdVecIndex=0) |
void | SetLed (LED led, int time, int cmdVecIndex) |
void | SetLed (LED led, int time, bool on=true, int cmdVecIndex=0) |
void | SetLedTime (LED led, int time, bool on=true, int cmdVecIndex=0) |
void | SetHeadLight (int time, bool on=true, int cmdVecIndex=0) |
Data Fields | |
RCRegion * | Region [MaxLedRegions] |
Static Public Attributes | |
static const int | MaxLedRegions = 3 |
Protected Attributes | |
int | LedIndex [NUM_LEDS] |
int | ValidRegions |
OPrimitiveID | LedID [NUM_LEDS] |
|
Default constructor |
|
Default destructor |
|
Method opens all LED primitives and stores them in the LedID array |
|
Finds a free memory region (RCRegion) in which the next command data can be set
|
|
Finds a free memory region (RCRegion) in which the next command data can be set
|
|
Returns the CommandVectorData obtained by the region corresponding to the index
|
|
Returns the number of valid regions
|
|
Methods creates an new LedCcommandVector for setting led status
|
|
Method allows user to insert an own command vector in memory region
|
|
Switches a Led on or off corresponding to the "on" value for a given time.
|
|
Switches a Led on or off corresponding to the "on" value.
|
|
Switches a Led on or off corresponding to the "on" value.
|
|
Switches a Led on or off corresponding to the "on" value.
|
|
Switches the retractable HeadLight on or off corresponding to the "on" value.
Here is the call graph for this function: ![]() |
|
Number of maximum allowd RCRegions for storing led-patterns. |
|
Array of RcRegions for storing led-patterns |
|
Mapping array for LED's in OCommandVectorData, to local LED_ARRAY |
|
Number of valid RCRegions with led-patterns |
|
Array containig the PrimitiveID's of the led's |
![]() |
Generated Thu Jan 19 11:55:36 2006 by
![]() |