Thread: PID help
View Single Post
  #3   Spotlight this post!  
Unread 20-01-2015, 09:39
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 221
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
Re: PID help

Here is a slightly modified version of the previous code, It has some fixes to it (my bad on the timing of the loop ) the lift motor (linAct) is now updated in the loop to prevent anything from getting out of phase.

Code: http://imgur.com/tTE7fif

Could you elaborate why resetting the encoder to zero when the lift is physically at its low point is bad. I don't quite understand. As far as the upper limit switch I can make it a last resort thing.

Thanks for the help.
Reply With Quote