1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9<title>WPADGetAccGravityUnit</title> 10</head> 11 12<body> 13 14<h1>WPADGetAccGravityUnit</h1> 15 16 17<h2>C Specification</h2> 18 19<dl> 20 <dd><pre><code>#include <revolution/wpad.h> 21 22#define WPAD_CHAN0 0 23#define WPAD_CHAN1 1 24#define WPAD_CHAN2 2 25#define WPAD_CHAN3 3 26 27typedef struct WPADAcc 28{ 29 s16 x; 30 s16 y; 31 s16 z; 32} 33 34void WPADGetAccGravityUnit( s32 chan, u32 type, WPADAcc *acc );</CODE></pre> 35 </dd> 36</dl> 37 38<h2>Arguments</h2> 39<TABLE border="1"> 40 <TBODY> 41 <TR> 42<TD width="120" bgcolor="#ffffe8"><code><b><i>chan</i></b></code></TD> 43<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD> 44 </TR> 45 <TR> 46<TD width="120" bgcolor="#ffffe8"><code><b><i>type</i></b></code></TD> 47<TD>One of <code>WPAD_DEV_*</code>.</TD> 48 </TR> 49 <TR> 50<TD width="120" bgcolor="#ffffe8"><code><b><i>acc</i></b></code></TD> 51<TD>Pointer used to copy X, Y, Z axis calibration values.</TD> 52 </TR> 53 </TBODY> 54</TABLE> 55 56<h2>Return Values</h2> 57 58<p>None.</p> 59 60<H2>Description</H2> 61<p> 62Gets motion sensor values when calibration data (force equivalent to 1G (gravity) on the x, y, z axes) is applied to any of the axes of the motion sensor in the Wii Remote or Nunchuk in the specified channel. 63 64<ul> 65 <li>Gets the calibration data for the Wii Remote motion sensor when <code>type</code> is <code>WPAD_DEV_CORE</code>.</li> 66 <li>Gets the calibration data for the Nunchuk motion sensor when <code>type</code> is <code>WPAD_DEV_FREESTYLE</code>.</li> 67</ul> 68 69</p> 70 71<h2>See Also</h2> 72<p> 73<A href="./toc.html" target="contents">WPAD Functions</A><br> 74</p> 75 76<H2>Revision History</H2> 77<P> 782007/02/13 Changed the Description to use the term "calibration"<br> 2006/06/19 Initial version<br> 79</P> 80 81<hr> 82<P>CONFIDENTIAL</p> 83</BODY> 84</HTML>