View Single Post
  #4   Spotlight this post!  
Unread 18-01-2006, 15:17
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: frc_camera not working but labview does

Quote:
Originally Posted by Issues
We can lock on and track the target with labview, but when we try to use kevin's code (frc_camera.zip)with the same configuration values it doesn't work properly. It continually searches for the target, and always returns a confidence value of 0.
We had a similar issue, and the culprit in our case was the servo motor speed

1. Camera would start the search sequence, looking for targer.
2. First pan sweep wouldn't see it. Camera swings back to the left to start second sweep.
3. While the camera is sweeping back, the camera sees the target, but since it is in the middle of sweeping back to start the next scan, it loses lock on it and has to restart scanning.

Making some minor tweaks to the target tracking code fixed this for us.

It also helps to make sure the camera is calibrated correctly.