wiiuse
Functions
ir.c File Reference

Handles IR data. More...

#include "ir.h"
#include <math.h>
Include dependency graph for ir.c:

Functions

void wiiuse_set_ir_mode (struct wiimote_t *wm)
 
void wiiuse_set_ir (struct wiimote_t *wm, int status)
 Set if the wiimote should track IR targets. More...
 
void wiiuse_set_ir_vres (struct wiimote_t *wm, unsigned int x, unsigned int y)
 Set the virtual screen resolution for IR tracking. More...
 
void wiiuse_set_ir_position (struct wiimote_t *wm, enum ir_position_t pos)
 Set the XY position for the IR cursor. More...
 
void wiiuse_set_aspect_ratio (struct wiimote_t *wm, enum aspect_t aspect)
 Set the aspect ratio of the TV/monitor. More...
 
void wiiuse_set_ir_sensitivity (struct wiimote_t *wm, int level)
 Set the IR sensitivity. More...
 
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.