WPI_TalonSRX get speed from feedback device

We are trying to find the alternative function for getSpeed() of the CANTalon. in the new CTRE library but we could not find any functions that returns the RPM in the WPI_TalonSRX

getSelectedSensorVelocity is the equivalent.

http://www.ctr-electronics.com/downloads/api/java/html/com/ctre/phoenix/motorcontrol/can/BaseMotorController.html#getSelectedSensorVelocity-int-

WPI_TalonSRX inherits TalonSRX, so it can call the same functions as TalonSRX.

Be sure to select the sensor type and confirm sensor data is good (web-based config self-test or plotting).

I was having trouble finding the equivalent of the configEncoderCodesPerRev method. Has anyone else found something that does this? thanks

Have you looked at the migration guide? https://github.com/CrossTheRoadElec/Phoenix-Documentation/blob/master/Migration%20Guide.md

I dont know how to even get the wpilib and then proceed to get it into eclipse. I figure anyone looking at this post already had this figured out. please help!

btw I dont really know how to use github completely so you might have to explain a little more in depth if you have to use github. I have tried looking through what first has for java programmers for wpilib but I really was not getting anywhere.

That’s a really terrible reason to post in this thread, rather than creating a new one…

Start Here. If you have a specific question about that document, please ask.

Thank you so much for your information. I feel stupid (1) for asking here and (2) as soon as I looked at the page I remembered how simple it was.

Thank you so much for your information. I feel stupid (1) for asking here and (2) as soon as I looked at the page I remembered how simple it was.