acmerobotics / ftc-dashboard

React-based web dashboard designed for FTC
https://acmerobotics.github.io/ftc-dashboard
Other
171 stars 130 forks source link

Gamepads not working with 0.3.8 and OpenRC Turbo #27

Closed IronReignRobotics closed 4 years ago

IronReignRobotics commented 4 years ago

Gamepads connected to my development pc aren't registering - they are recognized by the system, but in dashboard they are not detected. Start A doesn't do anything. I am able to init/start/stop opmodes and use other features of dashboard. Running dashboard in chrome 84.0.4147.125

I have used gamepads with dashboard before - when running on a stock skystone 5.0 repo. This issue is with Open RC Turbo 5.4B. I'm using the gradle integration. Note that I did my own migration to AndroidX on Turbo 5.4B before the 5.5 stuff was released. Not sure if that is the problem. I've now upgraded to 5.5B but can't update to your latest - I filed as separate issue about that.

There isn't anything on your documentation site about troubleshooting joysticks, so submitting here.

NoahAndrews commented 4 years ago

Are you using the same gamepads that worked before?

IronReignRobotics commented 4 years ago

no I can't say that - we have a pile of the F310 gamepads and don't track which ones we used with dashboard, but are aggressive about dumping buggy ones. the gamepad works on a regular android driver station. Let me test with another laptop and other gamepads. I wasn't quite at the point of thinking of this as full bug report - more looking to see if there were troubleshooting steps I should be trying.

rbrott commented 4 years ago

Here's an independent tool for testing HTML5 gamepad support: https://gamepad-tester.com/

IronReignRobotics commented 4 years ago

thanks! gamepad-tester is great. the gamepads work there.

rbrott commented 4 years ago

Do they still not work in dash?

IronReignRobotics commented 4 years ago

Correct - they still don't work in dash

rbrott commented 4 years ago

What's the gamepad's ID?

IronReignRobotics commented 4 years ago

The gamepad is reported by gamepad tester as: Xbox 360 Controller (XInput STANDARD GAMEPAD) I can have gamepadtester loaded up in another tab in chrome and the gamepad seems to be perfectly responsive

But in dashboard the gamepad icons stay greyed out. Start-A won't activate it.

Also I'm now running OpenRC Turbo 5.5b with dashboard 0.3.9

IronReignRobotics commented 4 years ago

Device manager reports the last event as: Driver Management concluded the process to install driver xusb22.inf_amd64_d80349221fa8b78c for Device Instance ID USB\VID_046D&PID_C21D\B489B9DF with the following status: 0x0.

rbrott commented 4 years ago

Seems like the gamepad is probably being filtered out. The code is looking for "Xbox 360 Wired Controller" in the ID. I'm happy to change it to just "Xbox 360" for the next release.