programming the Logitech game controller

We are wanting to use the Logitech game controller (same as used in FTC) as our drive controller and one of the standard joysticks for the actuator. We are having trouble getting the Logitech controller to work. The attached code shows generally how things are set up (we haven’t added the code for the actuator yet). We have tried every combination of the axes from the Joystick Get VI, but they all have the same result (which is kind of odd). I don’t have the specifics of the results with me at the moment, but essentially the left joystick y axis will control one motor, and the left joystick x axis will control the other motor. The right joystick does not do anything. Ideally we’d like to have the left joystick y axis control one motor and the right joystick y axis control the other motor. Any thoughts on what we could be doing wrong? Thanks in advance.





It took us most of an hour messing with our new Logitech controller before I remembered that silly little X/D switch on the bottom. In X mode it doesn’t work well with the Driver Station, providing only a few axes and one of the sticks was completely useless. In D mode it works pretty much the same as we’re used to for gamepads, except the right stick axes seemed swapped.

Thanks for the response. We identified the problem today. We renamed the Teleop VI to something team-specific and didn’t update the Robot Main VI with the new Teleop VI. We thought that replacing it in the Project Explorer would be sufficient, but apparently not. Anyway, we’re up an running with it. Woohoo!