Recommended firmware version for the XRP robot for using both the XRP Code Editor and WPILib

Thank you, glad you could attend the webinar!

If you want to completely reset the control board, this is what I’d suggest:

  1. Erase the entire flash memory
  2. Flash MicroPython
    • Download the latest version of MicroPython for the Pico W here and put it onto the control board (see RPi’s instructions). This is not the same exact uf2 that the XRP ships with (that’s an outdated version), but I’d really recommend just getting the latest version from RPi (this is what XRPCode does anyways, so it saves a step).
  3. (Optional) Make the LED blink
    • This is only needed if you want a true “new out of box” state for the control board. If so, create a main.py file that just blinks the LED indefinitely.

This repository includes recommended steps for getting the XRP working with WPILib. As of right now, v0.5.1 is the latest WPILib firmware for the XRP, and is intended to be used with WPILib 2024 Alpha 1, available here.

There is an example WPILib project available here to help you get started; it has a correctly configured build.gradle, though you’ll need to change the IP address in line 64 of build.gradle to 192.168.42.1.

As for supported controllers, I believe basically any USB controller should work in WPILib. You can even use your keyboard if needed.

Hope this helps!

Edit:

Use the new 2024 Beta 1 release of WPILib, it has an example project for the XRP. More info here: