|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
3824's rapid fire feature
|
|
#2
|
|||||
|
|||||
|
Re: 3824's rapid fire feature
Are you still using the RPi based vision system I saw on your robot at Palmetto?
|
|
#3
|
||||
|
||||
|
Re: 3824's rapid fire feature
Yup. Painful but effective. Now using Lidar for range to relax error tolerance on auto shooting.
|
|
#4
|
|||||
|
|||||
|
Re: 3824's rapid fire feature
Quote:
I've read into lower cost Lidar systems but haven't tried them yet. Which one are you using? Last edited by JohnFogarty : 21-04-2016 at 23:07. |
|
#5
|
||||
|
||||
|
Re: 3824's rapid fire feature
I'll get you part number tomorrow. Really like it.
|
|
#6
|
||||
|
||||
|
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.
|
|
#7
|
||||
|
||||
|
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. |
|
#8
|
||||
|
||||
|
Re: 3824's rapid fire feature
Quote:
|
|
#9
|
|||
|
|||
|
Re: 3824's rapid fire feature
Quote:
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 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) |
|
#10
|
|||
|
|||
|
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) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|