View Single Post
  #2   Spotlight this post!  
Unread 06-02-2016, 13:08
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: ChangeControlMode RobotDrive CANTalon

Quote:
Originally Posted by TimTheGreat View Post
We have encoders hooked up to our drivetrain CANTalons and were wondering if we can do set(EncoderPosition) to make the robot go a certain distance. I haven't found a way but I may be doing it wrong.
Look at Section 10.1 in the Talon SRX Software Reference Manual.

If you want to go a certain distance while limiting max speed and max acceleration, you might want to learn about motion profiling.