Closed karagenit closed 7 years ago
Think you will want to choose one of these two methods:
public void enableZeroSensorPositionOnForwardLimit(boolean enable)
Enables Talon SRX to automatically zero the Sensor Position whenever an edge is detected on the Forward Limit Switch signal.
Parameters:
enable - boolean input, pass true to enable feature or false to disable.
public void enableZeroSensorPositionOnReverseLimit(boolean enable)
Enables Talon SRX to automatically zero the Sensor Position whenever an edge is detected on the Reverse Limit Switch signal.
Parameters:
enable - boolean input, pass true to enable feature or false to disable.
So this issue was determined to be mechanical, I believe the new physical limit switches are working fine.
Also a requirement for Turret Calibration. A note on that: supposedly CANTalons have a builtin method to reset encoder counts on reaching a hard limit, so this could act as a sort of continuous calibration.