Public Member Functions | Protected Attributes | Private Attributes
GamePad Class Reference

GamePad RTM-Module class
outport TimedULong 'Buttons','Pushed Buttons' have 1 bit info for each button in 32bit value
outport TimedFloat 'Stick*' value was adjusted to [-1.0 - 1.0] * coefficient[x,y]
outport TimedDouble 'Stick*d' value was adjusted to [-1.0 - 1.0] * coefficient[x,y]
outport TimedVelocity 'Velocity' v = -StickLYd * coefficienty, w = -StickLXd * coefficientx
. More...

#include <GamePad.h>

List of all members.

Public Member Functions

 GamePad (RTC::Manager *manager)
virtual RTC::ReturnCode_t onActivated (RTC::UniqueId ec_id)
virtual RTC::ReturnCode_t onDeactivated (RTC::UniqueId ec_id)
virtual RTC::ReturnCode_t onExecute (RTC::UniqueId ec_id)
 polling gamepad status
virtual RTC::ReturnCode_t onInitialize ()
 ~GamePad ()

Protected Attributes

RTC::TimedULong m_Button
OutPort< RTC::TimedULong > m_ButtonOut
float m_Klx
float m_Kly
float m_Krx
float m_Kry
RTC::TimedFloat m_StickLX
RTC::TimedDouble m_StickLXd
OutPort< RTC::TimedDouble > m_StickLXdOut
OutPort< RTC::TimedFloat > m_StickLXOut
RTC::TimedFloat m_StickLY
RTC::TimedDouble m_StickLYd
OutPort< RTC::TimedDouble > m_StickLYdOut
OutPort< RTC::TimedFloat > m_StickLYOut
RTC::TimedFloat m_StickRX
RTC::TimedDouble m_StickRXd
OutPort< RTC::TimedDouble > m_StickRXdOut
OutPort< RTC::TimedFloat > m_StickRXOut
RTC::TimedFloat m_StickRY
RTC::TimedDouble m_StickRYd
OutPort< RTC::TimedDouble > m_StickRYdOut
OutPort< RTC::TimedFloat > m_StickRYOut
std::string m_str_port
RTC::TimedVelocity m_Velocity
IIS::TimedVelocity2D m_Velocity2DIIS
OutPort< IIS::TimedVelocity2D > m_Velocity2DIISOut
IIS::TimedVelocity m_VelocityIIS
OutPort< IIS::TimedVelocity > m_VelocityIISOut
OutPort< RTC::TimedVelocity > m_VelocityOut

Private Attributes

int dummy

Detailed Description

GamePad RTM-Module class
outport TimedULong 'Buttons','Pushed Buttons' have 1 bit info for each button in 32bit value
outport TimedFloat 'Stick*' value was adjusted to [-1.0 - 1.0] * coefficient[x,y]
outport TimedDouble 'Stick*d' value was adjusted to [-1.0 - 1.0] * coefficient[x,y]
outport TimedVelocity 'Velocity' v = -StickLYd * coefficienty, w = -StickLXd * coefficientx
.

Definition at line 45 of file GamePad.h.


Constructor & Destructor Documentation

GamePad::GamePad ( RTC::Manager *  manager)

Definition at line 41 of file GamePad.cpp.

Definition at line 92 of file GamePad.cpp.


Member Function Documentation

RTC::ReturnCode_t GamePad::onActivated ( RTC::UniqueId  ec_id) [virtual]

Definition at line 136 of file GamePad.cpp.

RTC::ReturnCode_t GamePad::onDeactivated ( RTC::UniqueId  ec_id) [virtual]

Definition at line 146 of file GamePad.cpp.

RTC::ReturnCode_t GamePad::onExecute ( RTC::UniqueId  ec_id) [virtual]

polling gamepad status

Parameters:
[in]@return

Definition at line 159 of file GamePad.cpp.

RTC::ReturnCode_t GamePad::onInitialize ( ) [virtual]

Definition at line 97 of file GamePad.cpp.


Member Data Documentation

int GamePad::dummy [private]

Definition at line 214 of file GamePad.h.

RTC::TimedULong GamePad::m_Button [protected]

Definition at line 144 of file GamePad.h.

OutPort<RTC::TimedULong> GamePad::m_ButtonOut [protected]

Definition at line 147 of file GamePad.h.

float GamePad::m_Klx [protected]
  • Name: Klx
  • DefaultValue: 1.0

Definition at line 109 of file GamePad.h.

float GamePad::m_Kly [protected]
  • Name: Kly
  • DefaultValue: 1.0

Definition at line 115 of file GamePad.h.

float GamePad::m_Krx [protected]
  • Name: Krx
  • DefaultValue: 1.0

Definition at line 121 of file GamePad.h.

float GamePad::m_Kry [protected]
  • Name: Kry
  • DefaultValue: 1.0

Definition at line 127 of file GamePad.h.

RTC::TimedFloat GamePad::m_StickLX [protected]

Definition at line 148 of file GamePad.h.

RTC::TimedDouble GamePad::m_StickLXd [protected]

Definition at line 164 of file GamePad.h.

OutPort<RTC::TimedDouble> GamePad::m_StickLXdOut [protected]

Definition at line 167 of file GamePad.h.

OutPort<RTC::TimedFloat> GamePad::m_StickLXOut [protected]

Definition at line 151 of file GamePad.h.

RTC::TimedFloat GamePad::m_StickLY [protected]

Definition at line 152 of file GamePad.h.

RTC::TimedDouble GamePad::m_StickLYd [protected]

Definition at line 168 of file GamePad.h.

OutPort<RTC::TimedDouble> GamePad::m_StickLYdOut [protected]

Definition at line 171 of file GamePad.h.

OutPort<RTC::TimedFloat> GamePad::m_StickLYOut [protected]

Definition at line 155 of file GamePad.h.

RTC::TimedFloat GamePad::m_StickRX [protected]

Definition at line 156 of file GamePad.h.

RTC::TimedDouble GamePad::m_StickRXd [protected]

Definition at line 172 of file GamePad.h.

OutPort<RTC::TimedDouble> GamePad::m_StickRXdOut [protected]

Definition at line 175 of file GamePad.h.

OutPort<RTC::TimedFloat> GamePad::m_StickRXOut [protected]

Definition at line 159 of file GamePad.h.

RTC::TimedFloat GamePad::m_StickRY [protected]

Definition at line 160 of file GamePad.h.

RTC::TimedDouble GamePad::m_StickRYd [protected]

Definition at line 176 of file GamePad.h.

OutPort<RTC::TimedDouble> GamePad::m_StickRYdOut [protected]

Definition at line 179 of file GamePad.h.

OutPort<RTC::TimedFloat> GamePad::m_StickRYOut [protected]

Definition at line 163 of file GamePad.h.

std::string GamePad::m_str_port [protected]
  • Name: str_port
  • DefaultValue: FTDI

Definition at line 133 of file GamePad.h.

RTC::TimedVelocity GamePad::m_Velocity [protected]

Definition at line 180 of file GamePad.h.

IIS::TimedVelocity2D GamePad::m_Velocity2DIIS [protected]

Definition at line 191 of file GamePad.h.

OutPort<IIS::TimedVelocity2D> GamePad::m_Velocity2DIISOut [protected]

Definition at line 194 of file GamePad.h.

IIS::TimedVelocity GamePad::m_VelocityIIS [protected]

Definition at line 186 of file GamePad.h.

OutPort<IIS::TimedVelocity> GamePad::m_VelocityIISOut [protected]

Definition at line 189 of file GamePad.h.

OutPort<RTC::TimedVelocity> GamePad::m_VelocityOut [protected]

Definition at line 183 of file GamePad.h.


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


RS003
Author(s):
autogenerated on Thu Jun 27 2013 14:58:49