Go to Post There is one unbreakable and unwritten law in FIRST, don't make it hard for your alliance partners to play. - Al Skierkiewicz [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 04-02-2006, 00:25
amateurrobotguy's Avatar
amateurrobotguy amateurrobotguy is offline
Lead Programmer/Senior Engineer
no team
 
Join Date: Feb 2005
Rookie Year: 2000
Location: ****
Posts: 136
amateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these parts
Cmaera semi-running away from light

First off, we did put the camera the opposite way in the instuctions(The right way). When we take a snapshot, the picture is upside down. We have the servos plugged in to the cam and are running it through labview. We did get it to track before when we hooked it up to the bot, but no luck now.

When we hold the light in front of it, it will go up, sort of following it, but never come down. I believe it does the same if we move down. What is going on here? It can't be code, since we are running from labview.
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
  #2   Spotlight this post!  
Unread 04-02-2006, 00:30
ForgottenSalad's Avatar
ForgottenSalad ForgottenSalad is offline
In search of a home...
AKA: Michael Wessler
no team
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Bethlehem, NH
Posts: 136
ForgottenSalad will become famous soon enoughForgottenSalad will become famous soon enough
Send a message via AIM to ForgottenSalad
Re: Cmaera semi-running away from light

We had the same exact problem... So I'll be the one to ask.

Do you have the servos to the PWM outs in the camera board or the PWM01 and PWM02 on the RC?

We had ours plugged into the cam board and had that EXACT problem.




Also, you're better off just downloading the default code and using that to track. I found it 10 times easier and more effective than labview.



EDIT: Re-read, you DID have it working on the bot before. If you want to use the camera pwm outs for the actual tracking you'd have to change the assignments in the code, I beleive in camera.c, I don't remember off the top of my head.
  #3   Spotlight this post!  
Unread 04-02-2006, 16:53
amateurrobotguy's Avatar
amateurrobotguy amateurrobotguy is offline
Lead Programmer/Senior Engineer
no team
 
Join Date: Feb 2005
Rookie Year: 2000
Location: ****
Posts: 136
amateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these parts
Re: Cmaera semi-running away from light

Its pluggeded into the cam board
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
  #4   Spotlight this post!  
Unread 04-02-2006, 17:23
xrabohrok's Avatar
xrabohrok xrabohrok is offline
hunter of errors
FRC #1208 (The Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2006
Location: O'Fallon
Posts: 62
xrabohrok is an unknown quantity at this point
Exclamation Re: Cmaera semi-running away from light

Our team did have the same problem, but we more or less fixed it. This is more of a "check the documentation" problem, but here's a few things to check.

There are 2 jumpers that can be put into the camera to flip servo outputs.

Lab-view settings are opposite/different than the actual code. What worked in labview hasn't worked for the robot for us.

there are 2 macros in the tracking.h library that you can inverse. This is what worked for us. They are labled by a comment.

Otherwise, good luck! This is one of the hardest probs you will probably encounter.
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
Light fades out? Mike Programming 13 17-01-2006 23:13
How many users does it take to change a Light Bulb? Matt Attallah Chit-Chat 4 04-09-2004 20:59
Please...no more steenkin' light! Andrew General Forum 37 17-04-2003 23:06
Important info about light Jay Lundy Technical Discussion 10 12-04-2002 11:37
How many posters does it take to change a lightbulb? Brandon Martus Chit-Chat 7 22-02-2002 19:48


All times are GMT -5. The time now is 12:26.

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