Go to Post You move on because FIRST isn't about the penalty or the un-penalty or whose robot is agressive and who is timid. - Collin Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-02-2006, 23:10
kirkio kirkio is offline
Registered User
FRC #0453
 
Join Date: Jan 2006
Location: Michigaan
Posts: 1
kirkio will become famous soon enoughkirkio will become famous soon enough
camera jerks and does not lock on when tracking

I've searched and have not been able to find anything like this.

I have Kevin's newest version of code loaded on my FRC and the camera is hooked up. When I hook up the camera, it goes through the jerky scanning motions, and then when it finally gets me data (pan/tilt angles etc) it does not lock on to the target, but rather does a very jerky scan process over again. This is no good to me if I am going to be using PAN_SERVO and TILT_SERVO to guide my robot. What's gone wrong?

Thanks.
  #2   Spotlight this post!  
Unread 10-02-2006, 23:20
X-Istence X-Istence is offline
Melt the RC controller!
AKA: Bert JW Regeer
no team
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Montville
Posts: 151
X-Istence will become famous soon enoughX-Istence will become famous soon enough
Send a message via AIM to X-Istence Send a message via MSN to X-Istence
Re: camera jerks and does not lock on when tracking

Your values are turned backwards, in tracking.h you need to change 1 to -1, and -1 to 1, something about ROTATION_SIGN_DEFAULT, if you mounted the camera properly, those will be wrong, if you mounted it like in the instructions, it will be mounted upside down, and the code should work.

The jerky scanning is standard, change it in tracking.c if you want.
__________________
My Blog!
  #3   Spotlight this post!  
Unread 10-02-2006, 23:43
nehalita's Avatar
nehalita nehalita is offline
Robots are friends
AKA: tagger fanatic
FRC #1345 (Platinum Dragons); FRC# 97 (RoboRuminants)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Ft. Laud, FL
Posts: 870
nehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond reputenehalita has a reputation beyond repute
Send a message via AIM to nehalita Send a message via MSN to nehalita Send a message via Yahoo to nehalita
Re: camera jerks and does not lock on when tracking

Either what x-istence said or you switched your servos so that your pan servo is hooked up to the pwm meant for the tilt servo on the RC and the tilt servo is hooked up to the pwm meant for the pan servo on the RC.

hope one of those two solves your problem
__________________
"Relativity applies to physics, not ethics." Thank you Einstein
MIT '10

Proud Member of H.I.L.
The PLATINUM DRAGONS are on FIRE!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving robot while tracking with camera questions... Steve Orr Programming 6 02-02-2006 22:24
Camera Tracking Maximum Distance MikeDubreuil Programming 0 18-01-2006 10:18
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Camera Tracking Woes VideoMan053 Programming 4 29-01-2005 18:09
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


All times are GMT -5. The time now is 03:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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