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 3.0">
7<meta http-equiv="Content-Style-Type" content="text/css">
8<link rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>WBCRead</title>
10</head>
11
12<body>
13
14<h1 align="left">WBCRead</h1>
15
16<h2>C Specification</h2>
17
18<dl>
19  <dd><pre><code>#include &lt;revolution/wbc.h&gt;</code></pre>
20  </dd>
21  <dd><pre>s32  WBCRead ( WPADBLStatus *status, double weight[], u32 size );</pre>
22  </dd>
23</dl>
24
25<h2>Arguments</h2>
26
27<table border="1" cellpadding="3" cellspacing="0.1">
28  <tr>
29<td width="120" bgcolor="#ffffe8"><code><STRONG><EM>status</EM></STRONG></code></td>
30<td width="520">Specifies the <CODE>WPADBLStatus</CODE> structure passed by <CODE>WPADRead</CODE>. </td>
31  </tr>
32
33  <tr>
34<td width="120" bgcolor="#ffffe8"><code><STRONG><EM>weight</EM></STRONG></code></td>
35<td width="520">Contains weight-converted values. Specifies the array pointer.</td>
36  </tr>
37
38  <tr>
39<td width="120" bgcolor="#ffffe8"><code><STRONG><EM>size</EM></STRONG></code></td>
40<td width="520">Specifies the <CODE><STRONG><EM>weight</EM></STRONG></CODE> array size. Space must be allotted for at least four elements.</td>
41  </tr>
42
43</table>
44
45
46
47
48
49
50
51
52<h2>Return Values</h2>
53
54<p>Returns 1 if a person or thing weighing approximately 15.4 pounds or more is on top of the Wii Balance Board accessory. Otherwise returns 0. On failure, returns -1.</p>
55
56<h2>Description</h2>
57This function converts the raw values obtained by <CODE>WPADRead</CODE> (press values) into weight values. Bear in mind that press values are refreshed 60 times a second. <br>
58
59<br>You must execute <code><a href="WBCSetupCalibration.html">WBCSetupCalibration</a></code> prior to using this function.
60<p></p>
61
62
63
64
65<h2>See Also</h2>
66
67<code><a href="WBCSetupCalibration.html">WBCSetupCalibration</a></code>
68<h2>Revision History</h2>
69
70<p>
71
722007/12/10 Changed the weight used to determine if a person has stepped on from 11 pounds to approximately 15.4 pounds.<br>2007/10/02 Added explanation of <CODE>WBCSetupCalibration</CODE>.<br>2007/09/10 Revised text in line with changes to the function format.<br>2007/08/31 Initial version.
73</p>
74<hr><p>CONFIDENTIAL</p></body>
75</html>
76