FIRST Robotics Competition Discussions

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

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 Compliments
Message 1 sur 3
4 768 Visites

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 sur 3
4 145 Visites

I also tested this and can confirm that it does work

Ty Prather
Technical Marketing Specialist
National Instruments
0 Compliments
Message 3 sur 3
4 145 Visites