![]() |
TalonSRX encoder confusion java
I am getting a little confused on encoders for the TalonSRX.
i am trying to do three things, first thing is the software limit. How exactly does it work. we have a shooter that tilts the upmost position it -1000 and all the way to the floor is 3500 i've tried swapping the values but it only lets me tilt the shooter down. the second thing is how to i reset the encoder or set it to 0? and the third thing is how to i tell the motor to go to a certain position? Code:
Tilt.setFeedbackDevice(FeedbackDevice.AnalogEncoder); |
Re: TalonSRX encoder confusion java
I don't know the answer to the questions about the limits as I have not used them yet. However, I can help with getting the Talon to a certain position.
Here is an example of initialization of a Talon: Code:
armR = new CANTalon(1); Code:
armR.changeControlMode(TalonControlMode.Position); //Change control mode of talon, default is PercentVbus (-1.0 to 1.0)In terms of setting it to 0, here is the code we use: Code:
talonName.setPosition(0); |
Re: TalonSRX encoder confusion java
Quote:
|
Re: TalonSRX encoder confusion java
Quote:
|
Re: TalonSRX encoder confusion java
Jerigo,
Have you tried looking at the Talon SRX Software Reference Manual? See the manufacturer's website. |
Re: TalonSRX encoder confusion java
Quote:
https://www.ctr-electronics.com/Talo...e%20Manual.pdf |
| All times are GMT -5. The time now is 10:02. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi