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<link rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 7<title>WBCGetTGCWeight</title> 8</head> 9 10<body> 11 12<h1 align="left">WBCGetTGCWeight</h1> 13 14<h2>Syntax</h2> 15 16<dl> 17 <dd><pre><code>#include <revolution/wbc.h></code> 18 19#define WBC_ERR_NONE 0 20#define WBC_ERR_NO_CONTROLLER -1 21#define WBC_ERR_BUSY -2 22#define WBC_ERR_WRONG_TEMP -3 23#define WBC_ERR_WRONG_PARAM -4 24</pre></dd> 25 <dd><pre>s32 WBCGetTGCWeight( double total_weight_ave , double *tgc_weight , WPADBLStatus *status );</pre> 26 </dd> 27</dl> 28 29<h2>Arguments</h2> 30 31<table class="arguments" border="1"> 32 <tr> 33<th>total_weight_ave</th> 34<td>Passes the combined value of the weight-converted <CODE><EM><STRONG>press</STRONG></EM></CODE> values of the four different points. Be sure to pass a two-second average as this combined value.</td> 35 </tr> 36 <tr> 37<th>tgc_weight</th> 38<td>Returns a value that has been corrected for both temperature and gravitational acceleration.</td> 39 </tr> 40 <tr> 41<th>status</th> 42<td>Specifies the <CODE>status</CODE> structure passed by <CODE>WPADRead</CODE>.</td> 43 </tr> 44</table> 45 46 47 48<h2>Return Values</h2> 49 50<p> 51Returns the following error codes. 52</p> 53<table class="arguments" border="1"> 54 <tr> 55<th>WBC_ERR_NONE</th> 56<td>Obtained properly corrected values.</td> 57 </tr> 58 <tr> 59<th>WBC_ERR_BUSY</th> 60<td>Wii Balance Board calibration values have not yet been obtained.</td> 61 </tr> 62 <tr> 63<th>WBC_ERR_WRONG_PARAM</th> 64<td>Incorrect argument.</td> 65 </tr> 66 <tr> 67<th>WBC_ERR_WRONG_TEMP</th> 68<td>The Wii Balance Board returned a corrupt temperature value. When this error is returned, update the temperature.</td> 69 </tr> 70</table> 71 72<h2>Description</h2> 73<p> 74Performs both temperature correction and correction for gravitational acceleration on the specified weight values. <br>You must execute <code><a href="WBCSetupCalibration.html">WBCSetupCalibration</a></code> prior to using this function. 75 76</p> 77 78<p></p> 79 80 81 82 83<h2>See Also</h2> 84<p class="reference"> 85<a href="WBCSetupCalibration.html">WBCSetupCalibration</a> 86</p> 87 88<h2>Revision History</h2> 89 90<p> 912008/04/17 Added error codes.<br>2007/10/02 Added explanation of <CODE>WBCSetupCalibration</CODE>.<br>2007/09/10 Added supplementary explanation.<br>2007/08/31 Initial version. 92</p> 93<hr><p>CONFIDENTIAL</p></body> 94</html> 95