#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 WBCRead ( WPADBLStatus *status, double weight[], u32 size );
| status | Specifies the WPADBLStatus structure passed by WPADRead. |
|---|---|
| weight | Contains weight-converted values. Specifies the array pointer. |
| size | Specifies the weight array size. Space must be allotted for at least four elements. |
Returns 1 if a person or thing weighing approximately 15.4 pounds or more is on top of the Wii Balance Board. Otherwise returns 0. Returns the following error codes on failure.
| WBC_ERR_BUSY | Wii Balance Board calibration values have not yet been obtained. |
|---|---|
| WBC_ERR_WRONG_PARAM | Incorrect argument. |
This function converts the raw values obtained by WPADRead (press values) into weight values. Bear in mind that press values are refreshed 60 times a second. You must execute WBCSetupCalibration before using this function.
2008/04/17 Added error codes.
2007/12/10 Changed the weight used to determine if a person has stepped on from 11 pounds to approximately 15.4 pounds.
2007/10/02 Added explanation of WBCSetupCalibration.
2007/09/10 Revised text in line with changes to the function format.
2007/08/31 Initial version.
CONFIDENTIAL