CrossTheRoadElec / Phoenix-Releases

Release repository for Phoenix-Framework and Phoenix-Tuner
76 stars 7 forks source link

WPI Simulation not working in 5.21.3 #32

Closed allengregoryiv closed 1 year ago

allengregoryiv commented 1 year ago

I was having issues getting a new WPILib project to simulate TalonFXs and couldn't figure out what was different from our old in-season project that was working correctly.

I finally looked and saw the old project was running Phoneix 5.21.1 and was simulating values correctly, but when I updated the vendordep to 5.21.3, that project also stopped working.

They now both give errors like this while running and don't update any of the values.

"CTR: CAN frame not received/too-stale. Talon SRX 21 GetMotorOutputPercent CTR: Firm Vers could not be retrieved. Use Phoenix Tuner to check ID and firmware(CRF) version. Talon FX 20 (3847)"

Did something change in 5.21.2 or 5.21.3 to break simulation or are there new examples to make it work correctly?

JCaporuscio commented 1 year ago

Yep, there was an issue in 5.21.3 that broke simulated objects instantiating correctly.

There's an updated version (5.21.4) that's available if you do on online install or update of the vendordep through vscode that will fix the issue.

JCaporuscio commented 1 year ago

Closing as this is fixed in current releases