wiiuse
Functions
Internal: IR Sensor

Functions

void wiiuse_set_ir_mode (struct wiimote_t *wm)
 
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

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.