30 NUM_ZEROING_READINGS = 100
31 NUM_WARMUP_READINGS = 100
38 OUTLIER_STDEV_MULTIPLE = 3
43 CALIBRATE_WITH_FAILED_CALIBRATION_DATA =
False 48 SWITCH_PULSE_PATTERN = -1
74 CLASSIC_BTN_UP = 0x0001
75 CLASSIC_BTN_LEFT = 0x0002
76 CLASSIC_BTN_ZR = 0x0004
77 CLASSIC_BTN_X = 0x0008
78 CLASSIC_BTN_A = 0x0010
79 CLASSIC_BTN_Y = 0x0020
80 CLASSIC_BTN_B = 0x0040
81 CLASSIC_BTN_ZL = 0x0080
82 CLASSIC_BTN_R = 0x0200
83 CLASSIC_BTN_PLUS = 0x0400
84 CLASSIC_BTN_HOME = 0x0800
85 CLASSIC_BTN_MINUS = 0x1000
86 CLASSIC_BTN_L = 0x2000
87 CLASSIC_BTN_DOWN = 0x4000
88 CLASSIC_BTN_RIGHT = 0x8000
140 BATTERY_PERCENTAGE = 0
144 EARTH_GRAVITY = 9.80665
163 GYRO_SCALE_FACTOR = 0.001055997
166 WII_MSG_TYPE_STATUS = 0
170 WII_MSG_TYPE_NUNCHUK = 4
171 WII_MSG_TYPE_CLASSIC = 5
173 WII_MSG_TYPE_MOTIONPLUS = 7
174 WII_MSG_TYPE_ERROR = 8
175 WII_MSG_TYPE_UNKNOWN = 9
181 ACC_X_STDEV_THRESHOLD = 1.0
182 ACC_Y_STDEV_THRESHOLD = 1.0
183 ACC_Z_STDEV_THRESHOLD = 1.0
185 GYRO_X_STDEV_THRESHOLD = 50.0
186 GYRO_Y_STDEV_THRESHOLD = 50.0
187 GYRO_Z_STDEV_THRESHOLD = 50.0
189 THRESHOLDS_ARRAY = np.array([ACC_X_STDEV_THRESHOLD,
190 ACC_Y_STDEV_THRESHOLD,
191 ACC_Z_STDEV_THRESHOLD,
192 GYRO_X_STDEV_THRESHOLD,
193 GYRO_Y_STDEV_THRESHOLD,
194 GYRO_Z_STDEV_THRESHOLD])