Hi,
I have been playing around with the XRP Web App ( XRP Web App ) trying to see what it has for new capabilities. For some reason, that I cannot figure out, the web app is not receiving input from a gamepad. I know the controller works as I have used the “old” editor ( https://xrpcode.wpi.edu/ ) to write/run a simple loop that takes Joystick input and turns a motor based on the amount of input.
Any suggestions on what I might do to diagnose the problem?
Could you give this page a try? https://xrpcode.wpi.edu/staging/
Gave that a try with no success. Tried in Chrome and Edge. fwiw, i did not sign into my Google account this time. I have in the past and that did not seem to make a difference.
I am running a PowerA XBox controller.
Here is the Python code I am trying to run:
from XRPLib.gamepad import *
gp = Gamepad.get_default_gamepad()
while True:
print(gp.get_value(gp.X1))
Thanks for trying!
@Fgrossman Can you please take a look at this?
The new version of the IDE uses a different protocol for the gamepad. You will need to be running the latest XRPLib for it to work. You can try deleting the file lib/XRPLib/version.py And then disconnect and reconnect to the IDE. It should try to load the latest XRPLib.
We will also have a new firmware loader we are working on and should be part of the staging release in another couple of weeks.