Have you verified that your sensor and your Talon agree on which way is forward (positive throttle should result in positive velocity, and visa versa)?
I'm not sure what you mean by resting velocity; the code you attached will have the Talon attempt to spin at 100rpm whenever the robot is enabled.
Also, read
this document very closely. Complexity aside, this is one of the best-documented pieces of hardware in FRC.