![]() |
Our Camera runs away from the light?!?!?
Hopefully you guys can help us with a problem we are having the servo's on the CMU Cam seem to be reversed because they alway go away from the light instead of tracking towards it I read in one of the other posts that some of the teams had this problem last year however I could not find a way to fix it.
Any help would be appreciated Thanks Brad |
Re: Our Camera runs away from the light?!?!?
You could try flipping the camera upside down in the pan/tilt box. If it was mounted incorrectly the first time it would cause something like that.
|
Re: Our Camera runs away from the light?!?!?
There are also two #define's in the tracking.h file of the camera tracking code by Kevin Watson that specify the sign (+ or -) to be used when tracking. If you locate these two and flip them, you will be able to make that correction in software instead of in hardware.
|
Re: Our Camera runs away from the light?!?!?
If you have the servos connected to the CMUCam board then you just have to jump the pan/tilt reverse jumper but if you are using the RC then you need to edit the code in tracking.h.
Code:
// If your camera suddenly moves away from the target once |
Re: Our Camera runs away from the light?!?!?
Alrighty Thanks guys
We'll have to give those a try tomorrow. Brad |
Re: Our Camera runs away from the light?!?!?
"If you have the servos connected to the CMUCam board then you just have to jump the pan/tilt reverse jumper"
I'm having this problem, how do you go about switching this jumper, and where is this jumper located? (Or how do I switch the pwm cable electronically?) |
Re: Our Camera runs away from the light?!?!?
Quote:
Have a look on pave 17 of the CMUCam2 Workbook. -Joe |
Re: Our Camera runs away from the light?!?!?
Quote:
perfect, thanks |
Re: Our Camera runs away from the light?!?!?
I strongly recommend changing the following values first...(Found on Tracking.h) from:
#define PAN_ROTATION_SIGN_DEFAULT -1 #define TILT_ROTATION_SIGN_DEFAULT +1 to #define PAN_ROTATION_SIGN_DEFAULT +1 #define TILT_ROTATION_SIGN_DEFAULT -1 Our team was having similar issues and in the end we found out all we had to do was invert the +/- signal...lol...:mad: |
Re: Our Camera runs away from the light?!?!?
we're having the same problem, but we've tried switching the values in tracking.h and it didn't work. Is there some reason it might not be recognizing the new values? :confused:
|
Re: Our Camera runs away from the light?!?!?
Quote:
If you're using the stripped down version, then I have no explanation why it's not working. :o |
Re: Our Camera runs away from the light?!?!?
Quote:
|
Re: Our Camera runs away from the light?!?!?
Quote:
If you are using labview when this happens, it is only becxause labview is crewy. I just turned the servo horn around for labview and put it back for Kevin's code and it worked fine. |
Re: Our Camera runs away from the light?!?!?
Your Camera is upside down....I had the same problem....and i tore it apart and reassembled the camera multiple times......and found that having the camera upside down does that......
Any other questions, feel free to ask and ill help the best i can.. feel free to email me at Johnbk14@gmail.com |
Re: Our Camera runs away from the light?!?!?
i have the same problem. I am using labview. can anyone tell me how to reverse the pan?
|
Re: Our Camera runs away from the light?!?!?
Quote:
http://www.chiefdelphi.com/forums/sh...9&postcount=21 |
Re: Our Camera runs away from the light?!?!?
Quote:
|
| All times are GMT -5. The time now is 11:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi