Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LedMC Class Reference

#include <LedMC.h>

Inheritance diagram for LedMC:

Inheritance graph
[legend]
List of all members.

Detailed Description

This is just a simple wrapper - you probably want to be looking at LedEngine.

This is handy if all you want to do is control the LED's, but since other MotionCommands will probably also want to make use of the LEDs, they can just use the engine component to do all the work.

Definition at line 16 of file LedMC.h.

Public Member Functions

 LedMC ()
 constructor
virtual ~LedMC ()
 destructor
virtual void DoStart ()
 called after this is added to MotionManager
virtual int updateOutputs ()
 updates the cmds from LedEngine::updateLEDs()
virtual int isDirty ()
 returns true if there are changes since the last updateLEDs()
virtual int isAlive ()
 used to prune "dead" motions from the MotionManager
void setWeights (LEDBitMask_t leds, float weight)
 Sets the JointCmd::weight of the LEDs specified by leds to weight.

Protected Attributes

OutputCmd cmds [NumLEDs][NumFrames]
 needed to store weight values of LEDs (useful to mark LEDs as unused)
bool notified
 set to true when we've posted a status event for completion of a flash/cflash


Member Function Documentation

virtual int LedMC::isAlive (  )  [inline, virtual]

used to prune "dead" motions from the MotionManager

note that a motion could be "paused" or inactive and therefore not dirty, but still alive, biding its time to "strike" ;)

Returns:
zero if the motion is still processing, non-zero otherwise

Implements MotionCommand.

Definition at line 45 of file LedMC.h.


The documentation for this class was generated from the following file:

Tekkotsu v3.0
Generated Fri May 11 20:08:15 2007 by Doxygen 1.4.7