Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wiimote/src/external/wiicpp/wiic/dynamics.h @ 10422

Last change on this file since 10422 was 9780, checked in by georgr, 11 years ago

WiiCpp library successfully (?) added - won't work without libbluetooth-dev

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1/*
2 *    dynamics.h
3 *
4 *        This file is part of WiiC, written by:
5 *              Gabriele Randelli
6 *              Email: randelli@dis.uniroma1.it
7 *
8 *    Copyright 2010
9 *             
10 *        This file is based on Wiiuse, written By:
11 *              Michael Laforest        < para >
12 *              Email: < thepara (--AT--) g m a i l [--DOT--] com >
13 *
14 *        Copyright 2006-2007
15 *
16 *    This program is free software; you can redistribute it and/or modify
17 *    it under the terms of the GNU General Public License as published by
18 *    the Free Software Foundation; either version 3 of the License, or
19 *    (at your option) any later version.
20 *
21 *    This program is distributed in the hope that it will be useful,
22 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
23 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 *    GNU General Public License for more details.
25 *
26 *    You should have received a copy of the GNU General Public License
27 *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
28 *
29 *        $Header$
30 */
31
32/**
33 *      @file
34 *      @brief Handles the dynamics of the wiimote.
35 *
36 *      The file includes functions that handle the dynamics
37 *      of the wiimote.  Such dynamics include orientation and
38 *      motion sensing.
39 */
40
41#ifndef DYNAMICS_H_INCLUDED
42#define DYNAMICS_H_INCLUDED
43
44#include "wiic_internal.h"
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50void calculate_orientation(struct vec3f_t* in, struct ang3f_t* out);
51void calculate_gforce(struct accel_t* ac, struct vec3b_t* accel, struct gforce_t* gforce, int smooth);
52void calc_joystick_state(struct joystick_t* js, float x, float y);
53void apply_smoothing(struct gforce_t* gforce, float alpha);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif // DYNAMICS_H_INCLUDED
Note: See TracBrowser for help on using the repository browser.