FIRST Robotics Competition Discussions

Showing results for 
Search instead for 
Did you mean: 

Trigger code for xbox controller

We are trying to write code for our triggers on our Xbox controller.  We want the motor to turn one way when we hit the left trigger and turn the other way when we hit the right trigger. The left trigger is axes 2 and the right trigger is axes 3.  the following is a screen shot of our code which we cannot get to work.

0 Kudos
Message 1 of 3

Following up on our phone call, the code in the attached screenshot works.  We were able to resolve this by rebuilding the code and deploying a second time.  Something went wrong in the first deployment.  With the new deployment, the code is now working.

Message 2 of 3

I also tested this and can confirm that it does work

Ty Prather
Technical Marketing Specialist
National Instruments
0 Kudos
Message 3 of 3