WBCRead

C Specification

#include <revolution/wbc.h>
s32  WBCRead ( WPADBLStatus *status, double weight[], u32 size );

Arguments

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.

Return Values

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.

Description

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 prior to using this function.

See Also

WBCSetupCalibration

Revision History

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