|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Yet another Camera thread...
For the past few days / week, I've been trying to get the camera code to work. This code I have made is a variation of the sample code provided. As an FYI, the Target.h and Target.cpp is a copy and paste from the sample code.
The code *seems* to recognize a target... when it sees pink above green (or was it green above pink?), the servos slow down significantly and then once the target is out of sight, it keeps on moving at a normal speed. Help is appreciated, Thanks. EDIT: Seems like "Track.h" needs to go after "TrackAPI.h". Still, there's likely something wrong w/ the code. Last edited by Pancake : 25-01-2009 at 21:20. |
|
#2
|
|||
|
|||
|
Re: Yet another Camera thread...
The most likely case of this problem is that the sign of the horizontal direction is backward. When the two color demo sees the target it tries to step slowly until it is in the target is in the center. If the step value is backward it actually moves away from the target. Once the target is out of the image, the normal panning, which is faster, will kick in.
|
|
#3
|
|||
|
|||
|
Re: Yet another Camera thread...
Do you mean changing:
Code:
incrementV = verticalDestination - verticalPosition; Code:
incrementV = verticalPosition - verticalDestination; ![]() Code:
// TODO: Check to see if this needs to be reversed // you may need to reverse this based on your vertical servo installation |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Yet another bumper thread | Vikesrock | Technical Discussion | 26 | 19-01-2009 17:04 |
| yet another programming error | hawk_11 | Programming | 2 | 13-02-2005 15:57 |
| Yet another website to critique | Joshua May | Website Design/Showcase | 11 | 18-10-2004 09:18 |
| And yet, ANOTHER questions | cammie825 | Programming | 8 | 13-02-2003 14:48 |
| Yet another scoring system... | archiver | 2001 | 0 | 23-06-2002 23:26 |