Thread: Sensors?!
View Single Post
  #3   Spotlight this post!  
Unread 09-01-2017, 18:51
Beaker's Avatar
Beaker Beaker is offline
624 Programming Alum
AKA: Justin K.
no team (No Team)
Team Role: Alumni
 
Join Date: Mar 2014
Rookie Year: 2013
Location: United States
Posts: 61
Beaker is a splendid one to beholdBeaker is a splendid one to beholdBeaker is a splendid one to beholdBeaker is a splendid one to beholdBeaker is a splendid one to beholdBeaker is a splendid one to beholdBeaker is a splendid one to behold
Re: Sensors?!

You might find that using a camera and a LED light ring is beneficial in this situation.

What you can do is detect the vision targets on a peg, find the center of the target, and calculate how much you need to turn based on the image. With that information it shouldn't be too difficult to program a drivetrain mode that auto-locks onto the peg using a PID.

There is plenty of example code floating around on this subject from last year (I would take a look at the recent code postings). Also, FIRST provides a lot of example code for LabVIEW teams, so if you are one of those, you should take advantage of that.*

*That might be the same for other languages, but my team used LabVIEW, so I wouldn't know for sure.
__________________
Team 624 (Student) 2013-2016
BBQ FIRST Creator
Reply With Quote