View Single Post
  #4   Spotlight this post!  
Unread 20-08-2015, 19:01
Oromus's Avatar
Oromus Oromus is offline
Lead Programmer, Community Liason
AKA: Ryan
FRC #1902 (Exploding Bacon)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Florida
Posts: 82
Oromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to beholdOromus is a splendid one to behold
Re: A more autonomous teleop?

We actually did your example: our robot could automatically lift a tote to the appropriate height when it gone one. Here's how we did it:

Our robot got its totes from the human player station. A tote would slide through a ramp inside our robot and come out on the other side. There was a small touch sensor inside the ramp, so we could see when a tote was sliding through the ramp. After a delay of 1-2 seconds, we'd have our lift move to the appropriate position, taking the new tote with it.

We combined that with some more code and created a button that, when held, automatically stacked all totes coming through the human player station.

Generally, automating your robot is about two things: being able to detect whatever you need, and having a robot that can accurately do the task without human input.


The file relating to our automatic stacking can be seen here: https://github.com/FRC-1902/2015-gam...ackThread.java The programming in the code() function just loops constantly.

Hope this helps!
__________________


2016 Roles: Manipulator, Strategy Co-Lead, Programmer
2016 Orlando Regional: Quarterfinalist (Captain w/ 1557, 5557 and 4352)
2016 Rocket City Regional: Quarterfinalist (w/ 283 and 34), Regional Chairman's Award Winner
2016 Championship: N/A (had fun and was inspired, that's what counts)
-------------
2015 Role: Programmer
2015 GSCR: Quarterfinalist (w/ 4189 and 4026), Regional Chairman's Award Winner
2015 Orlando Regional: Semifinalist (w/ 456 and 86), Imagery Award Winner
2015 Championship: Pit Safety Award Winner

Last edited by Oromus : 20-08-2015 at 19:05.