View Single Post
  #2   Spotlight this post!  
Unread 25-06-2015, 10:25
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
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: Using PID on Talon SRX with Gyro for feedback


Put an encoder on each side (left and right).

Average the left and right encoder counts and use that as the process variable for separate left/right closed-loop distance controllers.

Use your gyro reading to keep the vehicle driving straight. Use the gyro reading as the process variable for separate left/right closed-loop orientation controllers.

Sum the left (and right) distance and orientation controller outputs and use that sum as the command for the left (and right) wheels.


Reply With Quote