As I understand it, we can get the XRP to execute Java code via a websockets connection. Does the existing onboard webserver support that already? Or do we need to write a websocket connection handler? Also, from the WPILib side, how do we plumb this all together?
Using WPILib with the XRP requires loading separate firmware onto the XRP. The GitHub for that is here, which has instructions on how to use it, and the firmware itself is available in the Releases.
The WPILib/XRP implementation is currently functional, but note that it’s still in an alpha state, so there are likely to be more changes as everything gets fleshed out. The most recent update is an XRP specific plugin in WPILib, which just got merged yesterday. I expect there will be a new release of the XRP firmware soon to make use of that new plugin, so keep an eye on that for when it becomes available.
Thanks. Although I am tempted by the alpha release, I think I will wait for the first beta.
Will you be updating us via the Announcements and Help channel? Or should we subscribe to the repo changes?
I don’t know if updates will be posted here regarding XRP-WPILib updates. @Fgrossman or @bamiller can you provide an answer on that?
If you don’t want to miss any updates, then subscribing to that repo should keep you updated!
Sounds good. I am now subscribed.
Are there any other repos that would be worth watching for XRP specific code?
The XRPLib repo is probably also worth watching if you want to stay updated on the MicroPython library for the XRP. Patch notes for those should also appear at xrpcode.wpi.edu if there’s been any updates since you last visited it.
Great, I have added it to my watch list. Out of curiosity, where would we find the repo for the xrpcode editor? There might be a situation where we need to host it locally - firewall issues etc., and it would be nice to have experimented with running a local copy before hand.
I think @Fgrossman might be able to answer that one
Yes. We will announce updates to the WPILib as they hit the alpha and beta stages. The XRPCode will auto update for you when we release. That will bring up release notes when it happens and will automatically update the XRPLib.