wiiuse
Functions
dynamics.c File Reference

Handles the dynamics of the wiimote. More...

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

Functions

void calculate_orientation (struct accel_t *ac, struct vec3b_t *accel, struct orient_t *orient, int smooth)
 Calculate the roll, pitch, yaw. More...
 
void calculate_gforce (struct accel_t *ac, struct vec3b_t *accel, struct gforce_t *gforce)
 Calculate the gravity forces on each axis. More...
 
void calc_joystick_state (struct joystick_t *js, float x, float y)
 Calculate the angle and magnitude of a joystick. More...
 
void apply_smoothing (struct accel_t *ac, struct orient_t *orient, int type)
 

Detailed Description

Handles the dynamics of the wiimote.

The file includes functions that handle the dynamics of the wiimote. Such dynamics include orientation and motion sensing.