Using wpilib command based programming & XRP as a test environment

Hi - my FRC team has been using the XRP with block programming & python for our outreach events and new student orientation to teach basic programming and robotics concepts. It’s been working great and now we’d like to expand to using it to test our robot code, especially for our newer programmers.

Command based programming with wpilib and the XRP creating its own access point seems to work fine, but I’d like to use it to help our programmers play with things like photon vision and reading & writing data via network tables. I’d like to know if I’m approaching this setup correctly.

I have photon vision running on a raspberry pi 4 connected directly to a router. I have a command based program running in the simulator on my laptop & I connect the laptop to that routers wifi network. I modified the xrp config file on the xrp to include this network ssid & password & asked for STA mode. The router gives the XRP a new IP address, so I modified Build.gradle to use the new IP address instead of the default one. I do get the XRP to drive around using an xbox controller, so it seems like everything is working.

I’m just wondering if this approach sounds viable or is there something I’m missing that will mess up my new programmers? My goal is to get camera mounted to the XRP & have the kids program “turn to target”. I’d also like to hook a neopixel ring to the XRP & send light patterns via network tables. This will give me a way to get kids used to command based programming without needing an actual robot & roborio.

Thanks for any advice to point me in the right direction!

1 Like