wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.08k stars 610 forks source link

Document what the rumble types mean #7094

Open rzblue opened 2 months ago

rzblue commented 2 months ago

On Xbox controllers, left is the low frequency motor and right is the high frequency motor. Not sure if PS4 is the same. It'd be good to test.

https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/reference/input/xinputongameinput/structs/xinput_vibration

TheTripleV commented 2 months ago

Well its weird. On some controllers, there's actually 2 motors, distinctly left and right with no frequency difference

ThadHouse commented 2 months ago

PS4 doesn't work anyway. setRumble only works for XInput controllers. As for left and right, the official are high and low frequency. But 3rd party ones might not follow that. We should be documenting the first party controllers.

oh-yes-0-fps commented 2 months ago

Using ds4windows allows rumble to work on ps4/ps5 controllers and it behaves the same as xbox