xbmc
Macros | Functions
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:

Go to the source code of this file.

Macros

#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. More...
 
void calculate_extended_ir (struct wiimote_t *wm, byte *data)
 Calculate the data from the IR spots. More...
 
float calc_yaw (struct ir_t *ir)
 Calculate yaw given the IR data. More...
 

Detailed Description

Handles IR data.

Function Documentation

◆ calc_yaw()

float calc_yaw ( struct ir_t ir)

Calculate yaw given the IR data.

Parameters
irIR data structure.

◆ calculate_basic_ir()

void calculate_basic_ir ( struct wiimote_t wm,
byte *  data 
)

Calculate the data from the IR spots.

Basic IR mode.

Parameters
wmPointer to a wiimote_t structure.
dataData returned by the wiimote for the IR spots.

◆ calculate_extended_ir()

void calculate_extended_ir ( struct wiimote_t wm,
byte *  data 
)

Calculate the data from the IR spots.

Extended IR mode.

Parameters
wmPointer to a wiimote_t structure.
dataData returned by the wiimote for the IR spots.