Quote:
Originally Posted by joesmomh00haha
Yes... it is supposed to have 12 switches, but we only have 6 working which are the only ones that are in the code, we have the A B X Y buttons working(which in the code is written as the aux 1-4) and the wheel or the right analog in the xbox controller to just go back and forth(this is written in the code as the p1_wheel [ we get it to work, but we want it to work both ways, meaning the X and Y being two different motors, right now if we move it up/down left/right it goes either up or down for one single motor, we want it to go up/down a motor and left/right another motor.]<-thats another problem we have).
|
I'm confused here. You're using Mode 4 for an Xbox 360 controller. If so, this makes a total of 2 axes and 12 buttons available. The two axis for mode 4 are the right joystick, and the 12 buttons are whatever buttons you've selected as per the configuration instructions for the chicklet.
Assuming your on port one, the right joystick's axes are the variable p1_x and p1_y. The first four buttons are p1_sw_trig, p1_sw_top, p1_sw_aux1, and p1_sw_aux2. The remainder of the buttons are stored in p1_wheel and p1_aux in the most significant bits, which you have to test for with something like
Code:
switch_5=p1_wheel&(1<<7);
switch_6=p1_wheel&(1<<6);
etc.
Or are you just trying to use the default code without custom programming?