A program to show the use of a wireless xbox 360 controller. Has details on what data is given out from the controller as well as normalized values for the triggers and sticks

Dependencies:   USBHost USBHostXpad mbed

Fork of USBHostXpad_HelloWorld by Suga koubou

Files at this revision

API Documentation at this revision

Comitter:
JakBlackburn
Date:
Wed Mar 09 15:45:20 2016 +0000
Parent:
13:015ec003c063
Commit message:
fixed typo in data breakdown

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 015ec003c063 -r 9a82555f7a3b main.cpp
--- a/main.cpp	Wed Mar 09 11:03:36 2016 +0000
+++ b/main.cpp	Wed Mar 09 15:45:20 2016 +0000
@@ -55,21 +55,21 @@
 /**
 @namespace LSX
 @brief float for storing the value of the Left Analogue Stick's X axis
-@brief XPad returns a value between -32768(down) and 32767(up)
+@brief XPad returns a value between -32768(left) and 32767(right)
 @there is a deadzone between around -4000 and 4000 where the value returned is not consistent when in the fixed position(assummed 0,0 point)
 */
 float LSX=0x0;
 /**
 @namespace RSY
 @brief float for storing the value of the Right Analogue Stick's Y axis
-@brief XPad returns a value between -32768(down) and 32767(up)
+@brief XPad returns a value between -32768() and 32767(up)
 @there is a deadzone between around -4000 and 4000 where the value returned is not consistent when in the fixed position(assummed 0,0 point)
 */
 float RSY=0x0;
 /**
 @namespace RSX
 @brief float for storing the value of the Right Analogue Stick's X axis
-@brief XPad returns a value between -32768(down) and 32767(up)
+@brief XPad returns a value between -32768(left) and 32767(right)
 @there is a deadzone between around -4000 and 4000 where the value returned is not consistent when in the fixed position(assummed 0,0 point)
 */
 float RSX=0x0;
@@ -127,7 +127,7 @@
     RSX=stick_rx*sN;
     Lt=trigger_l*tN;
     Rt=trigger_r*tN;
-    //XpadValues(buttons, stick_lx, stick_ly, stick_rx, stick_ry, trigger_l, trigger_r);
+    XpadValues(buttons, stick_lx, stick_ly, stick_rx, stick_ry, trigger_l, trigger_r);
     poll = 0;
 }