#include <revolution/wbc.h>
#define WBC_ERR_NONE 0
#define WBC_ERR_NO_CONTROLLER -1
#define WBC_ERR_BUSY -2
#define WBC_ERR_WRONG_TEMP -3
#define WBC_ERR_WRONG_PARAM -4
s32 WBCGetTGCWeight( double total_weight_ave , double *tgc_weight , WPADBLStatus *status );
| total_weight_ave | Passes the combined value of the weight-converted press values of the four different points. Be sure to pass a two-second average as this combined value. |
|---|---|
| tgc_weight | Returns a value that has been corrected for both temperature and gravitational acceleration. |
| status | Specifies the status structure passed by WPADRead. |
Returns the following error codes.
| WBC_ERR_NONE | Obtained properly corrected values. |
|---|---|
| WBC_ERR_BUSY | Wii Balance Board calibration values have not yet been obtained. |
| WBC_ERR_WRONG_PARAM | Incorrect argument. |
| WBC_ERR_WRONG_TEMP | The Wii Balance Board returned a corrupt temperature value. When this error is returned, update the temperature. |
Performs both temperature correction and correction for gravitational acceleration on the specified weight values.
You must execute WBCSetupCalibration prior to using this function.
2008/04/17 Added error codes.
2007/10/02 Added explanation of WBCSetupCalibration.
2007/09/10 Added supplementary explanation.
2007/08/31 Initial version.
CONFIDENTIAL