|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
camera goes to corner when finds light
Using easy-c, I have a functioning camera code inside the operator control function. It looks left, right, up and down until it finds the light. When it does find it, the set servo tracking button usually will follow the light succesfully. About 30% of the time, however, once the camera finds the light, it just goes into the upper left corner, and I have no idea why. Does anyone know how to correct this?
|
|
#2
|
||||
|
||||
|
Re: camera goes to corner when finds light
Quote:
Are you using a fresh battery? |
|
#3
|
|||
|
|||
|
Re: camera goes to corner when finds light
I am using a fresh battery, and I am not using the default camera code.
|
|
#4
|
||||
|
||||
|
Re: camera goes to corner when finds light
Quote:
Your code is controlling the servos, so if you aren't using the default code, you'll have to share at least some of your code with us. |
|
#5
|
|||
|
|||
|
Re: camera goes to corner when finds light
Is it locked on to the target though? Returning target data? If so, it may be a matter of the settings for the target pixel.
|
|
#6
|
|||
|
|||
|
Re: camera goes to corner when finds light
It sounds like youre camera looks away from the light.
In the tracking.h module there are some bits to change: Look for: // If your camera suddenly moves away from the target once // it finds it, you'll need to change the sign on one or // both of these values. #define PAN_ROTATION_SIGN_DEFAULT -1 #define TILT_ROTATION_SIGN_DEFAULT +1 Try experimenting with these. BC |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Camera finds overhead lights not green light | theycallhimtom | Programming | 4 | 20-01-2007 17:37 |
| camera trouble,cant tell the green-light from regular white light | Nimmy | Programming | 26 | 14-01-2007 14:53 |
| pic: when prototyping goes wrong | Whalley | Extra Discussion | 13 | 01-02-2006 21:31 |
| Camera never finds target, stays at "Searching..." | Mike | Programming | 12 | 22-01-2006 12:47 |
| pic: When Good Metabolism Goes Bad. | CD47-Bot | Extra Discussion | 24 | 17-05-2003 21:10 |