We are unable to find a Boolean that tells us if the CTR Mag Encoder is connected to Talon SRX. We want to not set a PID on a motor in case encoder is not connected to talon.
Any help or feedback is appreciated.
We are unable to find a Boolean that tells us if the CTR Mag Encoder is connected to Talon SRX. We want to not set a PID on a motor in case encoder is not connected to talon.
Any help or feedback is appreciated.
I’d try to fix the problem of your encoder slipping out…
There is something in Java that does what you want - isSensorPresent - I don’t know how that translates to LV
Have You tried to get the index pin status from the encoder to see if that would work as an adequate way of determining if the encoder is present?
Matt
Thanks for your reply. We are using Mag SRX encoder and we are finding that LV Talon Get Status VI is not reporting Index Pin Status Boolean at all.
This boolean remains ‘False’ all the times.
–sk
If you ran your code instead of build/ Deploy/ Run at Startup, and place a Talon SRX Get Status.vi connected to a Motor Refnum Registry Get.vi to the motor in question in Period Tasks.vi. What values are present on the Talon SRX Status side of the Talon SRX Get Status.vi when the robot is sitting still and hasn’t been moved or operated? Also a picture might help as well.