-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about limit switch config options. #21
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the best practice for configuring a TalonSRX to be used without a limit switch? It seems to me that there are a few different options, and I'd like to know if there are actually any differences between any of these.
I'd like to start with this excerpt from the software reference PDF:
This seems to indicate that one way to config your talon if you don't plan on using limit switches is this:
talon.configForwardLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen, 0); talon.configReverseLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.NormallyOpen, 0);
However, the API also provides the following option:
talon.configForwardLimitSwitchSource(LimitSwitchSource.Deactivated, LimitSwitchNormal.Disabled, 0); talon.configReverseLimitSwitchSource(LimitSwitchSource.Deactivated, LimitSwitchNormal.Disabled, 0);
Does this configuration give any different result than the first if I don't plan on using a limit switch? Is one method preferred over the other?
Additionally, is there a difference between having a a limit switch source be "deactivated" and a limit switch having a normal state of "disabled"? In other words, is there any difference between these two config options?
talon.configForwardLimitSwitchSource(LimitSwitchSource.Deactivated, LimitSwitchNormal.NormallyOpen, 0);
talon.configForwardLimitSwitchSource(LimitSwitchSource.FeedbackConnector, LimitSwitchNormal.Disabled, 0);
Finally, how does the limit switch override enable fit into all of this? It seems to me that
talon.overrideLimitSwitchesEnable(false);
makes it so that the talon completely disregards limit switches, no matter the physical state of the switches or how they were configured initially. If that's the case, isn't that just equivalent to the second set of config options I listed (the ones with source = deactivated and normal = disabled)?What about
talon.overrideLimitSwitchesEnable(true);
? Does this simply turn on the limit switch functionality so that the limit switch works according to how it was initially configured? Or does this force the limit switch to be interpreted as activated, regardless of its actual physical state?Thanks in advance!
The text was updated successfully, but these errors were encountered: