Closed lospugs closed 12 months ago
Yep - the simulation functions in Python are on our near-term roadmap. No exact ETA I can provide yet but it should be coming soon.
This has been added with the release of Phoenix 6 2024 beta 3: https://api.ctr-electronics.com/changelog#20231122
I was attempting to test out the Phoenix 6 Python API by porting the java CommandBasedDrive example to Python to try out the beta. Missing method: set_position from TalonFXConfigurator Missing Classes: TalonFXSimState
I then ported some older code that simulates well (in that the robot moves on the screen, etc) with the robotpy Phoenix5 just to try out the beta.
Working and not working code is here for reference: https://github.com/Lambda-Corps/2024_Python_beta