From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

FIRST Robotics Competition Discussions

cancel
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
(3,919 Views)

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
(3,296 Views)

I also tested this and can confirm that it does work

Ty Prather
Technical Marketing Specialist
National Instruments
0 Kudos
Message 3 of 3
(3,296 Views)