Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

WiiMoteDriver Class Reference

Provides something. More...

#include <WiiMoteDriver.h>

Inheritance diagram for WiiMoteDriver:

Detailed Description

Provides something.

To do: write something here

Definition at line 65 of file WiiMoteDriver.h.

List of all members.

Public Member Functions

 WiiMoteDriver (const std::string &name)
 constructor
virtual ~WiiMoteDriver ()
 destructor
virtual std::string getClassName () const
 Returns the name of the class (aka its type).
virtual MotionHookgetMotionSink ()
virtual void getSensorSources (std::map< std::string, DataSource * > &sources)
virtual void getImageSources (std::map< std::string, DataSource * > &sources)
virtual void motionStarting ()
 Called when motion process is starting.
virtual void motionUpdated (const std::vector< size_t > &changedIndices, const float outputs[][NumOutputs])
 Called by motionCheck(), after comparing the new output values to lastOutputs, and before lastOutputs is updated.
virtual void motionStopping ()
 Called when motion process is stopping.
virtual void plistValueChanged (const plist::PrimitiveBase &pl)
virtual void mesg_callback (int id, int mesg_count, union wiimote_mesg *mesg[])

Public Attributes

DataCache data

Protected Member Functions

virtual int init ()
virtual void connect ()
 connect to qwerk
virtual void close ()
 closes the current proxies (reuses the communicator instance though)
int calcLEDValue (unsigned int i, float x)

Protected Attributes

wiimote_t * wiim

Private Member Functions

 WiiMoteDriver (const WiiMoteDriver &)
 do not call
WiiMoteDriveroperator= (const WiiMoteDriver &)
 do not call

Static Private Attributes

static const std::string autoRegisterWiiMoteDriver
 holds the class name, set via registration with the DeviceDriver registry

Constructor & Destructor Documentation

WiiMoteDriver ( const std::string &  name  )  [explicit]

constructor

Definition at line 68 of file WiiMoteDriver.h.

virtual ~WiiMoteDriver (  )  [virtual]

destructor

Definition at line 79 of file WiiMoteDriver.h.

WiiMoteDriver ( const WiiMoteDriver  )  [private]

do not call


Member Function Documentation

int calcLEDValue ( unsigned int  i,
float  x 
) [protected]

Definition at line 120 of file WiiMoteDriver.h.

virtual void close (  )  [protected, virtual]

closes the current proxies (reuses the communicator instance though)

Definition at line 114 of file WiiMoteDriver.h.

Referenced by ~WiiMoteDriver().

virtual void connect (  )  [protected, virtual]

connect to qwerk

Definition at line 111 of file WiiMoteDriver.h.

virtual std::string getClassName (  )  const [virtual]

Returns the name of the class (aka its type).

Suggested implementation is to declare a static string member, set it to the result of calling the registry's registerType, and then return that member here

Implements DeviceDriver.

Definition at line 84 of file WiiMoteDriver.h.

virtual void getImageSources ( std::map< std::string, DataSource * > &  sources  )  [virtual]

Reimplemented from DeviceDriver.

Definition at line 92 of file WiiMoteDriver.h.

virtual MotionHook* getMotionSink (  )  [virtual]

Reimplemented from DeviceDriver.

Definition at line 86 of file WiiMoteDriver.h.

virtual void getSensorSources ( std::map< std::string, DataSource * > &  sources  )  [virtual]

Reimplemented from DeviceDriver.

Definition at line 87 of file WiiMoteDriver.h.

virtual int init (  )  [protected, virtual]

Referenced by WiiMoteDriver().

virtual void mesg_callback ( int  id,
int  mesg_count,
union wiimote_mesg *  mesg[] 
) [virtual]
virtual void motionStarting (  )  [virtual]

Called when motion process is starting.

Reimplemented from MotionHook.

Definition at line 96 of file WiiMoteDriver.h.

virtual void motionStopping (  )  [virtual]

Called when motion process is stopping.

Reimplemented from MotionHook.

Definition at line 98 of file WiiMoteDriver.h.

virtual void motionUpdated ( const std::vector< size_t > &  ,
const float  float[][NumOutputs] 
) [virtual]

Called by motionCheck(), after comparing the new output values to lastOutputs, and before lastOutputs is updated.

Override this if you only need to send commands to the hardware for values that have changed. This function is always called for each update, even though changedIndices might be empty.

Reimplemented from MotionHook.

WiiMoteDriver& operator= ( const WiiMoteDriver  )  [private]

do not call

virtual void plistValueChanged ( const plist::PrimitiveBase pl  )  [virtual]

Implements PrimitiveListener.

Definition at line 100 of file WiiMoteDriver.h.


Member Data Documentation

const std::string autoRegisterWiiMoteDriver [static, private]

holds the class name, set via registration with the DeviceDriver registry

Definition at line 144 of file WiiMoteDriver.h.

Referenced by getClassName().

Definition at line 104 of file WiiMoteDriver.h.

Referenced by getSensorSources().

wiimote_t* wiim [protected]

Definition at line 141 of file WiiMoteDriver.h.

Referenced by close().


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

Tekkotsu Hardware Abstraction Layer 5.1CVS
Generated Mon May 9 05:01:42 2016 by Doxygen 1.6.3