src/ir.h File Reference

Handles IR data. More...

#include "wiiuse_internal.h"

Include dependency graph for ir.h:

This graph shows which files directly or indirectly include this file:


Defines

#define  WII_VRES_X   560
#define  WII_VRES_Y   340

Functions

void  calculate_basic_ir (struct wiimote_t *wm, byte *data)
  Calculate the data from the IR spots. Basic IR mode.
void  calculate_extended_ir (struct wiimote_t *wm, byte *data)
  Calculate the data from the IR spots. Extended IR mode.
float  calc_yaw (struct ir_t *ir)
  Calculate yaw given the IR data.

Detailed Description

Handles IR data.


Function Documentation

float calc_yaw ( struct ir_t ir  ) 

Calculate yaw given the IR data.

Parameters:
ir  IR data structure.

void calculate_basic_ir ( struct wiimote_t wm,
byte *  data  
)

Calculate the data from the IR spots. Basic IR mode.

Parameters:
wm  Pointer to a wiimote_t structure.
data  Data returned by the wiimote for the IR spots.

void calculate_extended_ir ( struct wiimote_t wm,
byte *  data  
)

Calculate the data from the IR spots. Extended IR mode.

Parameters:
wm  Pointer to a wiimote_t structure.
data  Data returned by the wiimote for the IR spots.


Generated on Wed Apr 2 19:30:09 2008 for wiiuse by  doxygen 1.5.4