Currently, sim state updates (such as updates done to TalonFXSimStates) are triggered in the main robot loop at the nominal loop period (20ms, or 50Hz). CTRE recommends that the sim state be updated as fast as possible (e.g. 5ms period) while in simulation to simulate on-robot CAN bus behavior - this is shown here.
We currently primarily update the sim states in classes such as CTREPhoenix6TalonFXSim, and there isn't an immediately obvious way to invoke these updates faster than the main robot cycle - thus, this issue now exists for us to figure it out 😄.
Currently, sim state updates (such as updates done to
TalonFXSimState
s) are triggered in the main robot loop at the nominal loop period (20ms, or 50Hz). CTRE recommends that the sim state be updated as fast as possible (e.g. 5ms period) while in simulation to simulate on-robot CAN bus behavior - this is shown here.We currently primarily update the sim states in classes such as
CTREPhoenix6TalonFXSim
, and there isn't an immediately obvious way to invoke these updates faster than the main robot cycle - thus, this issue now exists for us to figure it out 😄.