Go to Post The biggest thing is you don't have to make your robot like another teams. Come up with something unique and go from there. RAISE THE BAR..... - camtunkpa [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 18-02-2007, 11:00
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Re: Camera locks on but it still off

Right now, when you square up the camera with our chassis, the actual field-of-view (which we found to be around 42* in the pan direction) is about 75% on the right side of our 'bot. We have adjusted the Pan Target pixel so that when tracking the camera unit points straight at the target, but now I am thinking that this isn't really desirable. Who cares where it points, you want the mx values on the center of the image sensor, right? Wouldn't that give you a better chance of not losing the light?

What about using pwm.h to adjust the PWM_CENTER value like so:
  1. Put the light directly in front of your camera/robot but far enough away from it, so that blob size is just a few pixels.
  2. The camera should aim to the left or right of it if the pan tracking pixel is at the center of the image sensor (default).
  3. When the terminal shows that pan error is close to zero pixels (try to get it within one) then record the pwm value being sent to the pan servo.
  4. Add (127 - pwmValueWithZeroPanError) * PWM_GAIN to PWM_CENTER for the pan PWM (or subtract--test which one helps).
Now a pan servo of 127 should mean the light is dead ahead (though the camera unit will be pointed away from it).

Is this better than changing the pan target pixel?

Thanks in advance,
Robinson Levin

[Note: I think that there is an underlying assumption in the adjust above that your previous PWM_CENTER value made a pwm output of 127 point the camera straight ahead, right?]

Last edited by gnirts : 18-02-2007 at 11:11.
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not quite an animation, but still... Mazin 3D Animation and Competition 7 13-06-2006 22:25
Urgent help needed : Camera locks on to no apparent target! ?!?! Salik Syed Programming 11 06-03-2006 17:24
OI PWM Lights blink red but still works? SpeakerSilenced Programming 4 21-02-2005 10:44
Team 108 Finishes, but is still confuzed Specialagentjim 3D Animation and Competition 2 20-03-2002 19:33
What keeps you off a team but still with FIRST? Jessica Boucher General Forum 14 13-06-2001 21:37


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

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