We are coding an xBox 360 controller in LabVIEW and are having trouble getting the robot code to recognize any input values. We have opened the controller as a joystick and wired in LabVIEW the button and axis outputs to code. Currently, all the lights on our Jaguars are still flashing orange.
Theres actually a very simple way to test the values output by a controller. just put all of the values to the motor outputs and run the code from robot main. Dont deply. And then probe the values in the teleop.vi . If its not outputing values then you have 1 of 2 problems
Your controller is in the wrong port or you cant use the controller. Make sure you’re using the PC version of the 360 Controller.
First, check to see if you have drivers installed. Go online for microsoft updates.
Second, look at the Labview examples for joystick controls and look at mapping the inputs to outputs. When you run the vi you will check to see if the motion from the front panel corresponds to the input action on the controller. Record your findings for future programming. You may need to modify the joystick vi to show all switch & joystick inputs on the front panel.
Go to the diagnostics or setup tab in the driver station and tell us if your gamepad is showing up. If it is not, you may be using a non-standard xbox controller (non-pc standard), and you will have to go get drivers to make it work.
However, that should not affect your jaguars. If they are getting a proper PWM signal, they should be solid orange. Are all the lights on your digital side car lit correctly?