|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
How'd you do it?
I've been working with the camera a bit throughout the season, it really perks my interest. None of the team wants it on there except me, so I am still pushing them to let me work on it.
How do you turn your robot to the light? We don't have a turret, so we need to turn the entire robot. I've come up with two ideas: 1)you mount the camera so it can pivot on its own with the servos, then turn the robot until the camera is straight. 2) you mount the camera stationary (no servos), and turn the entire robot until you lock on. We're only talking Pan here, not tilt. Which do you think is the better idea? The only way I can see to do it the first way, is to lock on, then move the robot a little, then lock on and move a little more until the camera is straight. The second way, you move the entire robot in a search pattern which seems a tad 'dangerous' to me, especially with my lack of programming ability ![]() On our robot, it would be a lot easier to mount the camera stationary (i've already got the spot picked out), but we would then need to move the robot itself in the search pattern. This would also make the tilt adjustment VERY easy, being a simple "run a motor until it lines up" to tilt our shoot angle. This is probably what I will end up doing if no one sees a problem in it Looking forward to your opinions! ~Dave team 706 |
|
#2
|
|||||
|
|||||
|
Re: How'd you do it?
We have the camera mounted stationary, and will use the relative position of the vision target in it's field of vision to aim the turret/launcher.
|
|
#3
|
|||
|
|||
|
Re: How'd you do it?
Number 1 is the best way to do it becuase your not going to get the accuracy you need with having your robot pivoting around all the time. Its easier and more usefull to use a pan assembly and mount that on the robot.
|
|
#4
|
|||
|
|||
|
Re: How'd you do it?
Perhaps, but then how would I quickly move the robot and camera at the same time to get the robot straight to the target?
The only way I can see to do this is to move a little, re-track, and repeat. |
|
#5
|
|||||
|
|||||
|
Re: How'd you do it?
Just remember you are only allowed to work on software during the fix-it windows.
![]() |
|
#6
|
|||||
|
|||||
|
Re: How'd you do it?
Mount it stationary, especially since you arent going to use tilt. The camera is going to have the target in its field of view if you are facing anywhere near direction of the target. Just get the median x (mx) near the center of the field of view and fire. The camera should only be a fine ajustment so no search routine. In auto mode just drive to about where you need to be and have the camera turn the bot a little bit to line up. Same thing in operator mode. Use an LED to indicate Target Locked and maybe a button the driver can push to do the same fine adjustment as auto mode. Just my $.02 Good Luck!
|
|
#7
|
|||
|
|||
|
Re: How'd you do it?
Mine does it rather neatly, have the driver park it in range, then have him hit a button, if the robot sees the green light, it will auto adjust to the right angle, and then the driver can start shooting. It is great!
|
|
#8
|
||||
|
||||
|
Re: How'd you do it?
I have it so the camera is freely mounted, can do it's search routine, when the cam locks on, the driver can press a button and have the robot line up with the target, find the distance from the target, and adjust the speed of the launchers accordingly. It works pretty well!
|
|
#9
|
|||
|
|||
|
Re: How'd you do it?
Quote:
![]() |
|
#10
|
||||
|
||||
|
Re: How'd you do it?
Yes, the only problem is, when lining up the robot overshoots sometimes, and it kind of moves back and forth. This I am told is a PID problem, not sure what that means, and I'm a rookie programmer. Maybe if anyone has a solution, or can help me, I would really appreciate it
. But yeah, I had to make many sacrifices because of the mech section. I had originally wanted a rotating turret, and angle adjusment on the turret, but none of these "luxuries" were avaiable, it still works really well though! I'm overall happy with it. |
|
#11
|
|||
|
|||
|
Re: How'd you do it?
Quote:
|
|
#12
|
|||||
|
|||||
|
Re: How'd you do it?
If you have a PID loop already in place, increase the D term to dampen the oscillations.
|
|
#13
|
||||
|
||||
|
Re: How'd you do it?
I don't even know what a PID loop is?
I had something like this: if (p1_sw_trig == 1) { if ((((int)PAN_SERVO - 131)>= 1)||(((int)PAN_SERVO - 131)<=-1)) { RIGHT_W = (127+(12*(((int)PAN_SERVO - 131)))); LEFT_W = (127-(12*(((int)PAN_SERVO - 131)))); } else { RIGHT_W = 127; LEFT_W = 127; } I'm thinking maybe 12 is the D value, however, when I decrease it too much, the robot wont turn when it gets to the point of being servo steps off. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Imagery Award winners: How'd you do it? | Billfred | General Forum | 5 | 05-01-2005 18:05 |
| Windows XP - In My Hands | Nate Smith | Chit-Chat | 15 | 01-08-2001 10:24 |