View Single Post
  #4   Spotlight this post!  
Unread 04-02-2015, 18:25
robotdna robotdna is offline
Registered User
FRC #4593
 
Join Date: Jan 2015
Location: SD
Posts: 7
robotdna is an unknown quantity at this point
Re: Talon SRX "speed_control" mode? (Python)

Hi,

Yes, contrary to this community's belief, I actually read the manual AND documentation AND user's guide before I posted this haha.

How do we set the Talon's speed control mode? I know there is the classControlMode class, which I imported (but only with the "Speed = hal.TalonSRXConst.kMode_VelocityCloseLoop" portion under it, as we only need the Speed Control Mode). I also placed the "def changeControlMode(self, controlMode)" under the our example MyRobot function. I was a little unsure as to what to change in that code so I tried ControlMode.Speed (?) under some of the spots that contained ControlMode. It didn't break, but I have no idea if it worked.

Once those were placed, I tried defining the set function and doing some stuff with that. A lot of that failed.


It's clear that the functionality exists for what we want to do (I think), I just don't know really how to use it all. (By now you should have figured out I'm kind of an awful programmer).

Would it be easier to post our code here and see if any of you can help us?


I'm sorry for all the trouble, and many thanks,
robotdna