My team is using an Xbox controller (although we have also tested with a Logitech controller and with a Logitech joystick to no avail) to control our robot this year and while the DriverStation displays the controller correctly and shows the position of the axes, the robot itself does not seem to recognize any input from the controller.
I have verified this by printing off the position of each controller axis to the console. When I run the code on the wpi simulation, the positions are displayed correctly. When I run the code on the robot, the positions are always reported as 0.
The DriverStation prints this message off when I enable the robot:
Warning 44003 FRC: No robot code is currently running. Driver Station
19:10:04:635 WARNING : wpilib.ds : Joystick Button 1 on port 0 not available, check if controller is plugged in
Warning 1 Joystick Button 1 on port 0 not available, check if controller is plugged in
As far as I can tell, there is, in fact, robot code running as it prints off 0’s to the console as per my code.
Some notes:
I am running python on the robot with robotpy. My code can be found here.
Any help is appreciated, thanks!