wiiuse
Public Attributes | List of all members
accel_t Struct Reference

Accelerometer struct. More...

#include <wiiuse.h>

Collaboration diagram for accel_t:
Collaboration graph
[legend]

Public Attributes

struct vec3b_t cal_zero
 zero calibration
 
struct vec3b_t cal_g
 1g difference around 0cal
 
struct vec3b_t cal_zero_lsb
 Extra low-order calibration bits from the EEPROM, decoded only under WIIUSE_ACCEL_10BIT. More...
 
struct vec3b_t cal_g_lsb
 
float st_roll
 last smoothed roll value
 
float st_pitch
 last smoothed roll pitch
 
float st_alpha
 alpha value for smoothing [0-1]
 

Detailed Description

Accelerometer struct.

For any device with an accelerometer.

Member Data Documentation

◆ cal_zero_lsb

struct vec3b_t accel_t::cal_zero_lsb

Extra low-order calibration bits from the EEPROM, decoded only under WIIUSE_ACCEL_10BIT.

cal_zero_lsb belongs to cal_zero; cal_g_lsb holds the low bits of the full-precision cal_g delta, so under the flag cal_g is that delta's high part. Zero otherwise, and for calibration not read from the Wii Remote's EEPROM (e.g. the Nunchuk).


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