Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Who has the camera working? (http://www.chiefdelphi.com/forums/showthread.php?t=43247)

sniggel 19-01-2007 14:00

Re: Who has the camera working?
 
We had the camera working yesterday, however now the camera seems to recognize the target but it doesnt seem to be sending any data. No changes to the code or hardware have been made. Help in any way would be appreciated. Thanks in advance.

paulcd2000 19-01-2007 20:10

Re: Who has the camera working?
 
I have it working, but i was just wondering...
Did everyone else have to change the, "PAN_ROTATION_SIGN_DEFAULT" and "TILT_ROTATION_SIGN_DEFAULT" cuz we had to change both. check those if ur having problems

slloyd 20-01-2007 20:53

Re: Who has the camera working?
 
we noticed that when the camera is tracking around the PWM cable would come lose and then "no data" would appear. took a while before we realized this.

i think we should tape it in place or something.

slloyd

slloyd 20-01-2007 20:55

Re: Who has the camera working?
 
we didn't need to chanage anything in the code. using kevin's 2007 code, version 2.1 (just released).

but, i found the camera was turning AWAY from the green light... but since i read kevin's FAQ ahead of time i knew he had the answer already. within 5 minutes the camera was tracking feverishly!

slloyd

synth3tk 21-01-2007 00:15

How We Did It (Sorta)
 
Team 964 is proud to announce that after a week of trial, error, and frustration that our camera works! How we did it exactly, I don't know. Me and Devin sorta played around with the coding for a bit, then resorted to the CMUCam2_Workbook, [sarcasm]the last place you should look.[/sarcasm] As I said earlier, we wouldn't be able to tell you the exact steps to save our lives, but I can give you the general steps that we used. {Note: MPLab and LabView was used}
  • Added include lines for all the header files into user_routines.h
  • Went through the CMUCam2 Workbook and followed the steps to calibrate it (using YcRcb)
  • Fine tuned the tracking.c code until it moved the way we wanted it
Also, it took a while for it to send data to the terminal, which is an integral part of calibrating it, needless to say.

Quote:

Originally Posted by paulcd2000 (Post 560737)
I have it working, but i was just wondering...
Did everyone else have to change the, "PAN_ROTATION_SIGN_DEFAULT" and "TILT_ROTATION_SIGN_DEFAULT" cuz we had to change both. check those if ur having problems

Yes! Devin changed that during Friday's build time, but I wasn't there when he did it so I'm not sure of the values used. Pretty sure it was -1 and -1 or something.

Quote:

Originally Posted by slloyd (Post 561465)
we noticed that when the camera is tracking around the PWM cable would come lose and then "no data" would appear. took a while before we realized this.

i think we should tape it in place or something.

slloyd

Yeah, we were having this same problem. It was getting on my last nerve everytime it'd cut off data and we realized that problem.

skillinp 25-01-2007 20:11

Re: Who has the camera working?
 
Quote:

Originally Posted by FlyingDutchman (Post 446191)
we got our camera working and we our using pixels to tell how far away our robot is from the goal and how much force it will need to hopefully go in

Will that still work when the lights are only partially facing the sides, in other words, could it confuse being far away with the light at some odd angle?

Idaman323 26-01-2007 18:07

Re: Who has the camera working?
 
Glad everyone has it working... ! So far, this year, I have not figured it out. Last year I tried to get it working and it failed me. What happens after it tracks the light? We need it to move the drive motors to turn in the right direction...

Tom Bottiglieri 26-01-2007 18:09

Re: Who has the camera working?
 
We just capped the vision tetra.

wingnut1705 27-01-2007 13:33

Re: Who has the camera working?
 
We got our camera working with the Kevin Watson code.

jgannon 27-01-2007 13:49

Re: Who has the camera working?
 
Quote:

Originally Posted by paulcd2000 (Post 560737)
I have it working, but i was just wondering...
Did everyone else have to change the, "PAN_ROTATION_SIGN_DEFAULT" and "TILT_ROTATION_SIGN_DEFAULT" cuz we had to change both. check those if ur having problems

If anybody is having this problem, it's because your camera board is upside down. You probably have it set the way that the manual shows, whereas Kevin's code is optimized to work the other way, so the axis of tilt rotation passes through the lens of the camera. I think the way Kevin has it makes more sense in this application, but you can just switch the sign on both of those parameters if you'd rather leave the hardware alone.

bronxbomber92 27-01-2007 13:53

Re: Who has the camera working?
 
Got the camera working today :)
Just, I can'tfigure out to make it move (forward) once it is targeted on the light...

abrockhoff 27-01-2007 21:24

Re: Who has the camera working?
 
Ours is working, but we're still playing around with the virtual window function and 2 lights to get our robot to the rack as fast as possible.

Donut 28-01-2007 11:25

Re: Who has the camera working?
 
Quote:

Originally Posted by Tom Bottiglieri (Post 565936)
We just capped the vision tetra.

How did you get 2 years behind schedule on your camera? :)

We uploaded the code on last year's camera, no problems at all. As long as the new camera is wired properly it shouldn't have any problems either.

Now we just have to figure out what we want it to tell us.

Mib 28-01-2007 13:46

Re: Who has the camera working?
 
We have ours set up, tracking lights, and giving feedback through the terminal.

Right now, we're working on coding in trig functions in order to do the autonomous modes.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi