![]() |
Turning with the right trigger?
We have a code to run our robot with mecanum drive that works, and we are using an xbox controller. All is well except for the fact that we can't turn with the right trigger, only with the left. How do I add something in to be able to turn with the right trigger?
Code:
package org.usfirst.frc.team3229.robot; |
Re: Turning with the right trigger?
I'm assuming that the z-axis on your controller doesn't exist and that is why you want the triggers to rotate. So, here you go.
Code:
Btw, you wouldn't have to invert the Y and X axis if you put the ports in as 0-3 -- frontleft, rearLeft, frontRight, rearRight Just found this: https://github.com/FRC3571/2015/blob...ontroller.java It might help but thank Team 3571. |
Re: Turning with the right trigger?
Thanks!
|
Re: Turning with the right trigger?
No problem, if you need anymore help just message me.
|
| All times are GMT -5. The time now is 22:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi