Simulating Code with Victors

Hi everyone,
We want to simulate our code before we try it on the actual bot. We use the built in simulate feature from WPI Lib. Everything works, but sometimes it can’t recognize any CAN devices, so none of my (simulated) motor controllers get any output. Any suggestions?

1 Like

Assuming you mean VictorSPX controllers, none of the vendor libraries currently provide support for the WPILib simulation tools

1 Like

If you use WPI_VictorSPX, you can get some simulation features if you call the set(double) method.

However, while simulating it will still spam the console with errors.

That must be new then… I wasn’t aware that CTRE had added Sim support to the library…

I’m using WPI_VictorSPX and its . set () method, but the motor controller doesn’t even show up in simulation. It does spew errors though

For me it shows up in “Other Devices”. Maybe you don’t have that window open?

Have you updated to the latest CTRE vendor library? They added support for simulation in a post-kickoff release.

I do. It works sometimes, and it might be because of Peter Johnson’s solution (or lack of its application). I’ll try it

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.