View Single Post
  #4   Spotlight this post!  
Unread 24-01-2013, 18:56
Woolly's Avatar
Woolly Woolly is offline
Programming Mentor
AKA: Dillon Woollums
FRC #1806 (S.W.A.T.)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Springfield, MO
Posts: 512
Woolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond repute
Re: Auto-aming with vision

Quote:
Originally Posted by Priyesh69 View Post
since the x and y data is changing it's not a constant so with what i link the output of the motor. A small example would help
Here, this is how I'd attack that piece of code, minus the WPI stuff. I don't now exactly great the angle adjustment would work, but the distance-RPM adjustment is proven.

Though I would put the bang-bang controller in an explicitly timed loop in periodic tasks, and run globals (for the target RPM) to it from autonomous and teleop. If you do that ABSOLUTELY do not forget to send a 0 to it while in disabled mode or you'll wonder why your shooter wheel never stops.

Hope this helps, and good luck!
Attached Files
File Type: vi Using Vision Data Example.vi (14.8 KB, 48 views)
__________________


Team 1806 Student: 2012-2013 | Mentor: 2013-Present
Reply With Quote