#include <cafe/pads/wbc/wbc.h>

#define WBC_ERR_NONE             0
#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.

Return Values

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 corrupted temperature value. When this error is returned, update the temperature.


Performs both temperature correction and correction for gravitational acceleration on the specified weight values. Execute WBCSetupCalibration prior to using this function.

Do Not Call From

Background Do not call this function from the background.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Multiple Cores Do not call this function from more than one Core.

See Also


Revision History

2013/05/08 Automated cleanup pass.
2012/07/25 Cleanup pass
2011/07/20 Initial version.