Go to Post Someone want to channel their inner Mark Leon and do the math? - Billfred [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-04-2016, 22:37
lovelj's Avatar
lovelj lovelj is offline
Registered User
FRC #3824 (RoHawktics)
Team Role: Mentor
 
Join Date: Nov 2013
Rookie Year: 2011
Location: Knoxville
Posts: 86
lovelj is an unknown quantity at this point
3824's rapid fire feature

Improved vision system

http://youtu.be/TiQF0IRk-l4
__________________
Mentor: FIRST Team 3824
Oak Ridge National Laboratory
Manufacturing Demonstration Facility (MDF)
http://web.ornl.gov/sci/manufacturing/
Reply With Quote
  #2   Spotlight this post!  
Unread 21-04-2016, 22:41
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
FTC, I have returned.
AKA: @doctorfogarty @GarnetSq
FTC #11444 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,555
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: 3824's rapid fire feature

Are you still using the RPi based vision system I saw on your robot at Palmetto?
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
"Head Bot Coach" FRC Team 4901 Garnet Squadron

Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1102, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker
Reply With Quote
  #3   Spotlight this post!  
Unread 21-04-2016, 22:58
lovelj's Avatar
lovelj lovelj is offline
Registered User
FRC #3824 (RoHawktics)
Team Role: Mentor
 
Join Date: Nov 2013
Rookie Year: 2011
Location: Knoxville
Posts: 86
lovelj is an unknown quantity at this point
Re: 3824's rapid fire feature

Quote:
Originally Posted by JohnFogarty View Post
Are you still using the RPi based vision system I saw on your robot at Palmetto?
Yup. Painful but effective. Now using Lidar for range to relax error tolerance on auto shooting.
__________________
Mentor: FIRST Team 3824
Oak Ridge National Laboratory
Manufacturing Demonstration Facility (MDF)
http://web.ornl.gov/sci/manufacturing/
Reply With Quote
  #4   Spotlight this post!  
Unread 21-04-2016, 23:00
JohnFogarty's Avatar
JohnFogarty JohnFogarty is offline
FTC, I have returned.
AKA: @doctorfogarty @GarnetSq
FTC #11444 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,555
JohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond reputeJohnFogarty has a reputation beyond repute
Re: 3824's rapid fire feature

Quote:
Originally Posted by lovelj View Post
Yup. Painful but effective. Now using Lidar for range to relax error tolerance on auto shooting.
We know about the painful part, we use one too.

I've read into lower cost Lidar systems but haven't tried them yet. Which one are you using?
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
"Head Bot Coach" FRC Team 4901 Garnet Squadron

Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1102, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker

Last edited by JohnFogarty : 21-04-2016 at 23:07.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-04-2016, 23:04
lovelj's Avatar
lovelj lovelj is offline
Registered User
FRC #3824 (RoHawktics)
Team Role: Mentor
 
Join Date: Nov 2013
Rookie Year: 2011
Location: Knoxville
Posts: 86
lovelj is an unknown quantity at this point
Re: 3824's rapid fire feature

Quote:
Originally Posted by JohnFogarty View Post
We know about the painful part, we use one too.

I've read into lower cost Lidar systems but haven't tried them yet. Which one are you using?
I'll get you part number tomorrow. Really like it.
__________________
Mentor: FIRST Team 3824
Oak Ridge National Laboratory
Manufacturing Demonstration Facility (MDF)
http://web.ornl.gov/sci/manufacturing/
Reply With Quote
  #6   Spotlight this post!  
Unread 21-04-2016, 23:05
New Lightning's Avatar
New Lightning New Lightning is offline
Master of Tactics
AKA: Scott Hasek
FRC #1987
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2013
Location: Lee's Summit, MO
Posts: 156
New Lightning has a spectacular aura aboutNew Lightning has a spectacular aura about
Re: 3824's rapid fire feature

The accuracy is astonishing. Not a single miss. Very impressed. Can't wait to see what you guys do at camps.
Reply With Quote
  #7   Spotlight this post!  
Unread 22-04-2016, 12:58
lovelj's Avatar
lovelj lovelj is offline
Registered User
FRC #3824 (RoHawktics)
Team Role: Mentor
 
Join Date: Nov 2013
Rookie Year: 2011
Location: Knoxville
Posts: 86
lovelj is an unknown quantity at this point
Re: 3824's rapid fire feature

The lidar is from PulsedLight.

http://pulsedlight3d.com/

It's a little over $100. In a nutshell, at Palmetto, we targeted the shooter manually and hit slightly about 50% and tried to shoot from the batter.

At Smoky, we got the vision system perfected and hit close to 100% high goal in autonomous and probably 80% from the field but could shoot from any distance. We had weird communication problems with the raspberry pie and didn't solve it (thanks to another team) until the finals (changed to a static IP address). We used the vision system to auto align for shooting but it was relatively slow (took about 4 to 5 second).

Since Smoky, we've go the lidar coupled to the vision system. We relax our accuracy as a function of distance and tightened up the controls to where it takes between 1 and 3 seconds to line up and fire. The driver just gets close and hits the trigger, auto firing takes care of the rest.
__________________
Mentor: FIRST Team 3824
Oak Ridge National Laboratory
Manufacturing Demonstration Facility (MDF)
http://web.ornl.gov/sci/manufacturing/
Reply With Quote
  #8   Spotlight this post!  
Unread 22-04-2016, 14:37
Louisiana Jones's Avatar
Louisiana Jones Louisiana Jones is offline
Jason Jones
AKA: Jason Jones
FRC #1806 (S.W.A.T.)
Team Role: Coach
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Smithville, MO
Posts: 84
Louisiana Jones will become famous soon enoughLouisiana Jones will become famous soon enough
Re: 3824's rapid fire feature

Quote:
Originally Posted by lovelj View Post

Since Smoky, we've go the lidar coupled to the vision system. We relax our accuracy as a function of distance and tightened up the controls to where it takes between 1 and 3 seconds to line up and fire. The driver just gets close and hits the trigger, auto firing takes care of the rest.
What kind of controller are you using to get the drivetrain to the exact shooting position?
__________________


Reply With Quote
  #9   Spotlight this post!  
Unread 22-04-2016, 16:11
rjsmith rjsmith is offline
Registered User
FRC #3824
 
Join Date: Apr 2016
Location: Knoxville
Posts: 2
rjsmith is an unknown quantity at this point
Re: 3824's rapid fire feature

Quote:
Originally Posted by Louisiana Jones View Post
What kind of controller are you using to get the drivetrain to the exact shooting position?
We've actually been through a couple of iterations of controllers. At first (way back in the middle of build season) we tried using the wpilib PID controller, but didn't like it because we had a low frame rate coming back from our image processing code, and a not very responsive drivetrain, so we ended up with a huge delay between output to the motors and response in the image, among other things.

At Palmetto we used a step based control that used the gyro for control left and right aiming and just set our shooter hight based on a quadratic equation and the distance from the goal (either from the lidar or the size of the reflected tape, I can't remember what we actually used now)

After we came back from palmetto we decided to basically drop what we had and start over. We went with something really simple: Check which way we need to move, move a little bit in the right direction, repeat.

It's literally 6 lines of code:
Code:
// Adjust wheel encoders based on distance from target
if (pixelXOffset > Constants.IMAGE_LARGE_PIXEL_OFFSET_X)
    encoderPosition += isPixelXOffsetPositive * Constants.IMAGE_LARGE_STEP_ANGLE_X;

else if (pixelXOffset > Constants.IMAGE_MEDIUM_PIXEL_OFFSET_X)
    encoderPosition += isPixelXOffsetPositive * Constants.IMAGE_MEDIUM_STEP_ANGLE_X;

else if (pixelXOffset > Constants.IMAGE_SMALL_PIXEL_OFFSET_X)
    encoderPosition += isPixelXOffsetPositive * Constants.IMAGE_SMALL_STEP_ANGLE_X;
We also use encoders connected to our drivetrain now so we get more precise control of our wheel positions. PID controllers control the encoder positions, we just adjust the setpoints up and down.

We do basically the same thing with the PID controller for the linear actuator that moves the shooter up and down. (Plus some magic that makes it scan up and down when it can't see the target)
Reply With Quote
  #10   Spotlight this post!  
Unread 22-04-2016, 16:22
rjsmith rjsmith is offline
Registered User
FRC #3824
 
Join Date: Apr 2016
Location: Knoxville
Posts: 2
rjsmith is an unknown quantity at this point
Re: 3824's rapid fire feature

We actually only use the Lidar for Automous Positioning.

We were very impressed with the accuracy we had at Smoky, but we wanted to be faster. Turns out, all we needed to do was reduce the required tolerance for shooting (so we shoot sooner and spend less time lining up exactly right)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:26.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi