![]() |
Inverting Talon SRX
So a few days ago we were putting together the code for an elevator and realized that the limit switches were backwards, basically the top limit switch stops it if it is going down and bottom stops it if it is going up. We are using the Talon SRX with the CAN bus and I was just wondering if there would be a way to invert it in the code? I know we can do it physically, and will probably end up doing that, but code would be much easier. I looked in the manual and couldn't find anything, so maybe it is hidden? I know with a Talon SR we can do random_motor->SetInvertedMotor(can't remember if it's bool); but it doesn't work with an SRX. Any ideas?
|
Re: Inverting Talon SRX
The procedure is documented in talon programming manual. But the "forward" limit switch stops the controller in the "forward direction" That might be down. Also if you are using normally closed limited switches you need to set that in the talon web dashboard. The default is N.O.
|
Re: Inverting Talon SRX
Quote:
Thanks for the help! |
Re: Inverting Talon SRX
You will need to fix it in the wiring. If the Talon is green (positive throttle) it will only check the forward limit switch. What causes the Talon to be green (closed-loop, slaving, slave-invert) instead of red (Reverse) can be controlled by Reverse Sensor and Reverse Closed-Loop output. But the limit switch is compared against the final output.
|
Re: Inverting Talon SRX
Quote:
|
Re: Inverting Talon SRX
Quote:
|
Re: Inverting Talon SRX
Quote:
right_motor->SetInvertedMotor(); It says it can't resolve SetInveretedMotor(), and also the header files for both CANTalon and CANSpeedController do not have this method. |
Re: Inverting Talon SRX
Quote:
I should stop being subtle. It isn't working. |
Re: Inverting Talon SRX
Quote:
|
Re: Inverting Talon SRX
And like Omar said this is all internal to the Talon - when it is green it is looking for the "forward" limit no matter the software convention.
|
Re: Inverting Talon SRX
Quote:
We'll do it, though. For the team! |
Re: Inverting Talon SRX
Quote:
|
Re: Inverting Talon SRX
Quote:
[board]~~wire~~[pwm connector][pwm connector]~~wire~~[sensor] It works well enough! |
Re: Inverting Talon SRX
Quote:
|
Re: Inverting Talon SRX
Quote:
|
| All times are GMT -5. The time now is 14:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi