![]() |
Toltechs success with camera
We achieved a major milestone for our veteran team in getting the camera code working with 1.5 weeks left to program:yikes: Here is video from Tuesday night without the tilt function on the camera. On Wednesday night, we repeated the performance but this time with the tilt. The development 'bot is from '05.
Quote:
|
Re: Toltechs success with camera
Looks good, glad to see another team getting the camera driving up and working.
|
Re: Toltechs success with camera
Very cool, congrats... Hopefully ours looks the same in the near future. Although we were planning on just dead reckoning forward (obviously getting a little slower at the end) and using the light for horizontal adjustment... Although it sounds like you tried that, you like using the camera tilt to adjust speed based on how far you are also? Hm.
|
Re: Toltechs success with camera
having the robot move towards the light............always a good thing
|
Re: Toltechs success with camera
Quote:
Good luck with your efforts and I hope to see lots of teams driving autonomously this year:) |
Re: Toltechs success with camera
Please help me, I can't figure out how to use the camera to actually MOVE the robot. I have the camera code working along with the camera itself, but how do I move pwm01 (left drive wheel) and pwm02 (right drive wheel) individually according to the pan of the camera? I have no idea where to begin with this code. (I just got the code to work for the camera and I've been trying for weeks. Now I only have 2 days, Please help if you can)
Code:
Code:
Code:
const rom unsigned int targetRange[] = |
Re: Toltechs success with camera
Ianuser:
why do you divide 50 by 90? Degrees/per step = The amount of tilt angle in the camera/ number of PWM steps The number of steps you have is 51 (194-144) inclusive... okay never mind, 1.765 is the right number... you just wrote it wrong in the post. Now are you sure that the camera has a 90 degree range when varying from level (pwm = 144) to fully raised( 194) ? I don't think that is right, but i'm an alumnus, and haven't played with the camera much. You turn off I_want_to_search when range is <= 50, i'm assuming that sets the PWM values to neutral, that is why the camera looks away. How to move? The fastest/simplest way is to scale your motor speed to your tilt angle (and thus your distance), so do something like this: PWMsout = (194-cameraTiltValue)*Scalar; |
Re: Toltechs success with camera
.999~(repeating) = x
9.999~ = 10x (Multiply both sides by ten) 9 = 9x (Subtract x, or .999~ from both sides) Wait a sec... you are assuming x =1, 10 - 1 = 9, not 10 - .999~ That does not follow, you can't use your conclusion, to reach your conclusion! x = 1 = .999~ |
Re: Toltechs success with camera
OK, for the pwm steps, my MIN is 94, max is 194 and center is 144. its a 50º range, 25º from 94 to 144 and 25º from 144 to 194. So, shouldn't it then be 100/50? or what? Im still a bit confused.
ALSO, might this work for moving the robot toward the light? Code:
if((Get_Tracking_State() == CAMERA_ON_TARGET) || (Get_Tracking_State() == TARGET_IN_VIEW))How do I use error precent to manipulate how accurate ("//see below for question") this will be (when it is looking directly at the light)? |
Re: Toltechs success with camera
ALSO, about the pwmstep thing...I can change the MAX and MIN and CENTER in tracking.h, right? (If I do that, do I have to mess around with the pwmvalue per large step which is right now 50...94 to 144 to 194 at 3 steps in total? And do I have to change anything in the CAMERA.C file?) Might that give me a better angle to work with if 94 to 194 is only -25º to 25º?
|
| All times are GMT -5. The time now is 20:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi