Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
WiiMote Class Reference

List of all members.

Public Member Functions

int getdata (double *x, double *y, double *a, int *deadkey)
void getraw (double *acc, int *buttons, double *nunchuk_stick, double *nunchuk_acc, int *nunchuk_buttons)
int init (int retries=5)
void shutdown ()
 WiiMote ()
 ~WiiMote ()

Private Member Functions

void cwiid_callback (cwiid_wiimote_t *wiimote, int mesg_count, union cwiid_mesg mesg[], struct timespec *timestamp)

Static Private Member Functions

static void cwiid_callback_s (cwiid_wiimote_t *wiimote, int mesg_count, union cwiid_mesg mesg[], struct timespec *timestamp)

Private Attributes

double a_
double a_last_
struct acc_cal calib_
pthread_cond_t cond_
int deadkey_
bool fresh_
WiiMotelast_instance_
pthread_mutex_t mutex_
bool ok_
cwiid_wiimote_t * wiimote_
double x_
double y_

Static Private Attributes

static const double dead_ = 0.2
static const double gain_ = 0.8
static const double iir_gain_ = 0.3
static WiiMoteinstance_ = 0
static const int message_timeout_ = 1

Detailed Description

Definition at line 55 of file teleop_wii.cc.


Constructor & Destructor Documentation

Definition at line 98 of file teleop_wii.cc.

Definition at line 115 of file teleop_wii.cc.


Member Function Documentation

void WiiMote::cwiid_callback ( cwiid_wiimote_t *  wiimote,
int  mesg_count,
union cwiid_mesg  mesg[],
struct timespec *  timestamp 
) [private]

Definition at line 133 of file teleop_wii.cc.

void WiiMote::cwiid_callback_s ( cwiid_wiimote_t *  wiimote,
int  mesg_count,
union cwiid_mesg  mesg[],
struct timespec *  timestamp 
) [static, private]

Definition at line 120 of file teleop_wii.cc.

int WiiMote::getdata ( double *  x,
double *  y,
double *  a,
int *  deadkey 
)

Definition at line 265 of file teleop_wii.cc.

void WiiMote::getraw ( double *  acc,
int *  buttons,
double *  nunchuk_stick,
double *  nunchuk_acc,
int *  nunchuk_buttons 
)

Definition at line 243 of file teleop_wii.cc.

int WiiMote::init ( int  retries = 5)

Definition at line 202 of file teleop_wii.cc.

Definition at line 234 of file teleop_wii.cc.


Member Data Documentation

double WiiMote::a_ [private]

Definition at line 79 of file teleop_wii.cc.

double WiiMote::a_last_ [private]

Definition at line 79 of file teleop_wii.cc.

struct acc_cal WiiMote::calib_ [private]

Definition at line 73 of file teleop_wii.cc.

pthread_cond_t WiiMote::cond_ [private]

Definition at line 75 of file teleop_wii.cc.

const double WiiMote::dead_ = 0.2 [static, private]

Definition at line 83 of file teleop_wii.cc.

int WiiMote::deadkey_ [private]

Definition at line 78 of file teleop_wii.cc.

bool WiiMote::fresh_ [private]

Definition at line 80 of file teleop_wii.cc.

const double WiiMote::gain_ = 0.8 [static, private]

Definition at line 84 of file teleop_wii.cc.

const double WiiMote::iir_gain_ = 0.3 [static, private]

Definition at line 85 of file teleop_wii.cc.

WiiMote * WiiMote::instance_ = 0 [static, private]

Definition at line 92 of file teleop_wii.cc.

Definition at line 91 of file teleop_wii.cc.

const int WiiMote::message_timeout_ = 1 [static, private]

Definition at line 89 of file teleop_wii.cc.

pthread_mutex_t WiiMote::mutex_ [private]

Definition at line 76 of file teleop_wii.cc.

bool WiiMote::ok_ [private]

Definition at line 80 of file teleop_wii.cc.

cwiid_wiimote_t* WiiMote::wiimote_ [private]

Definition at line 72 of file teleop_wii.cc.

double WiiMote::x_ [private]

Definition at line 79 of file teleop_wii.cc.

double WiiMote::y_ [private]

Definition at line 79 of file teleop_wii.cc.


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


teleop_wii
Author(s): Ingo Kresse
autogenerated on Mon Oct 6 2014 08:42:47