|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Camera locks on but it still off
So we finally got our camera completely working, or so we thought. After getting the camera to lock onto the light really well and give us a distance to the light rather accurately we noticed that once the camera was locked on the pan servo was a few degrees off. This meant that when it was locked on from our home zone it appeared as though the camera was off by a foot or two. Is this related to something we did wrong in the code, or is that just how Kevin's bells and whistles code works? Thanks
|
|
#2
|
||||
|
||||
|
Re: Camera locks on but it still off
Quote:
-Kevin |
|
#3
|
|||
|
|||
|
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:
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. |
|
#4
|
||||
|
||||
|
Re: Camera locks on but it still off
Yes, if the optical offset moves the center tracking pixel that far, I wouldn't decrease your field of view by moving it. If you know what the angular offset is, just add or subtract it from your calculation and you should be good to go.
-Kevin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |