Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Last Minute Programming Failures (http://www.chiefdelphi.com/forums/showthread.php?t=53905)

robobrain0101 11-02-2007 10:45

Last Minute Programming Failures
 
Does the usb-chicklet work when your robot is programmed with the default code?

esquared 11-02-2007 10:55

Re: Last Minute Programming Failures
 
Yes.
The chicklet just makes a USB joystick look like the oldschool gameport sticks.

robobrain0101 11-02-2007 10:59

Re: Last Minute Programming Failures
 
even though we are using a XBOX360 controller?

kaszeta 11-02-2007 14:30

Re: Last Minute Programming Failures
 
Quote:

Originally Posted by robobrain0101 (Post 575989)
even though we are using a XBOX360 controller?

Yes. All the USB Chicklet does is map your controller's axes and buttons to the appropriate variables (p1_x, p1_y, p1_wheel, p1_aux, p1_sw_top, etc.).

Only time it gets odd is if you've picked a configuration setting such that you're using more than 4 buttons, in which case you'll need to write code to check if the most significant bits of p1_wheel and/or p1_aux are set, since this is how the chicklet encodes the higher-numbered buttons.


All times are GMT -5. The time now is 04:53.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi