View Single Post
  #1   Spotlight this post!  
Unread 15-02-2012, 14:12
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
PID Velocity Control

Should this code work to get the velocity of the motor using an encoder. (See pictures they should explain better than I could). Plug that number into the process variable and see if it works. I'm going to increase the refresh rate to get a more accurate reading.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	135
Size:	7.2 KB
ID:	11914  Click image for larger version

Name:	Capture1.PNG
Views:	96
Size:	5.1 KB
ID:	11915  
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote