$search

wiimote_node::SwitchPulser Class Reference

List of all members.

Public Member Functions

def __init__
def flipLED
def flipRumble
def flipRumbleOrLED
def run
def turnIndicatorOn

Public Attributes

 LEDMask
 outputIndicator
 patternArray
 stop
 wiimoteDevice

Detailed Description

Thread for executing rumble and LED pulse patterns.

Definition at line 887 of file wiimote_node.py.


Member Function Documentation

def wiimote_node::SwitchPulser::__init__ (   self,
  patternArray,
  outputIndicator,
  wiimoteDevice 
)
Parameters: 
o patternArray: For each pattern: an OutputPattern object
  There will only be one such object for Rumble output.
  For LEDs there will  be one for each LED on the Wiimote.
  If one of the elements is None, that output indicator
  is left unchanged. For example, if the 2nd element
  in an LED pattern object array is None, the 2nd LED on the
  Wiimote will be left in its current state.
  
  Note that the patterns may be of different lengths.
  So, one LED might have a 3-state pattern, while another
  LED's pattern is 5 states long.
o RUMBLE or LED to indicate what is to be pulsed
o A Wiimote device object

Note: We always start the affected indicators as if they were
      in the OFF state, and we always leave them in the off state.

Definition at line 890 of file wiimote_node.py.

def wiimote_node::SwitchPulser::flipLED (   self,
  index 
)

Definition at line 1048 of file wiimote_node.py.

def wiimote_node::SwitchPulser::flipRumble (   self  ) 

Definition at line 1044 of file wiimote_node.py.

def wiimote_node::SwitchPulser::flipRumbleOrLED (   self,
  index = 0 
)

Definition at line 1036 of file wiimote_node.py.

def wiimote_node::SwitchPulser::run (   self  ) 

Definition at line 919 of file wiimote_node.py.

def wiimote_node::SwitchPulser::turnIndicatorOn (   self,
  theIndicator 
)
Turns indicator(s) of interest ON.

Parameter: RUMBLE or LED

Definition at line 1001 of file wiimote_node.py.


Member Data Documentation

Definition at line 1021 of file wiimote_node.py.

Definition at line 914 of file wiimote_node.py.

Definition at line 911 of file wiimote_node.py.

Definition at line 917 of file wiimote_node.py.

Definition at line 912 of file wiimote_node.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


wiimote
Author(s): Andreas Paepcke and Melonee Wise
autogenerated on Fri Mar 1 15:54:47 2013