CTRE SRX Magnetic Encoder and EncoderSim class #2946
-
Can you simulate with CTRE SRX Mag encoders? We use them in place of the simpler encoder models supported by EncoderSim. We wrote our own class for the SRX implementing CounterBase as it was not clear how to map all the Encoder class hardware related methods to the SRX encoder. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Not at the moment. It's CTRE's responsibility to implement simulation support for their libraries. I've heard they're working on it, but that's all I know. |
Beta Was this translation helpful? Give feedback.
-
The EncoderSim class is for simulating a WPILib Encoder, which represents a quadrature encoder connected to the roboRIO GPIO pins. |
Beta Was this translation helpful? Give feedback.
-
We've actually just published a release that adds a first round of sim support for Talon SRX and Victor SPX (other devices will be added soon). Check the release notes for features and limitations: http://www.ctr-electronics.com/downloads/release_notes/RELEASE_NOTES Also a CD post with a bit more in depth info: https://www.chiefdelphi.com/t/srx-magnetic-encoder-and-desktop-simulation/389674/3?u=jacob_c |
Beta Was this translation helpful? Give feedback.
-
I think there might be a possible mixup here: Mag Encoders can be connected to a TalonSRX or connected to the RIO. |
Beta Was this translation helpful? Give feedback.
We've actually just published a release that adds a first round of sim support for Talon SRX and Victor SPX (other devices will be added soon).
Release is here (requires current WPILib beta 4): https://github.com/CrossTheRoadElec/Phoenix-Releases/releases/tag/v5.19.1.0
Check the release notes for features and limitations: http://www.ctr-electronics.com/downloads/release_notes/RELEASE_NOTES
Also a CD post with a bit more in depth info: https://www.chiefdelphi.com/t/srx-magnetic-encoder-and-desktop-simulation/389674/3?u=jacob_c