Go to Post Inspect every connection after every match. Use your eyes, ears and nose. - 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 01-02-2009, 15:33
Yuan Xue Lim's Avatar
Yuan Xue Lim Yuan Xue Lim is offline
Electrical Programmer
FRC #3017 (Project Genesis)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: NY
Posts: 37
Yuan Xue Lim is an unknown quantity at this point
Send a message via AIM to Yuan Xue Lim
Camera problems(c++)

Hi I'm a programmer from team#3017
We had recently set up the camera for autonomous period.
The servos are working fine(although the horizontal servo is sorta lagging)
When it saw the target, it moved vertically up instead of following it and lost the target.
Can I please get a help ASAP because i got a deadline by tomorrow?
  #2   Spotlight this post!  
Unread 01-02-2009, 15:37
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
Re: Camera problems(c++)

few questions:
Are you running one of the demo programs?
Have you updated WPILib to version 3? (released on the 27th)
Have You updated the cRIO to version 11? (also on the 27th)
__________________
  #3   Spotlight this post!  
Unread 01-02-2009, 15:46
Yuan Xue Lim's Avatar
Yuan Xue Lim Yuan Xue Lim is offline
Electrical Programmer
FRC #3017 (Project Genesis)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: NY
Posts: 37
Yuan Xue Lim is an unknown quantity at this point
Send a message via AIM to Yuan Xue Lim
Re: Camera problems(c++)

Yes I did all them.
All i changed is the pwm servos in the program
__________________
[font="Fixedsys"][b]We Don't Hope We will.
  #4   Spotlight this post!  
Unread 01-02-2009, 15:49
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
Re: Camera problems(c++)

is this the 2 color tracking program or the vision demo?
__________________
  #5   Spotlight this post!  
Unread 01-02-2009, 15:52
Yuan Xue Lim's Avatar
Yuan Xue Lim Yuan Xue Lim is offline
Electrical Programmer
FRC #3017 (Project Genesis)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: NY
Posts: 37
Yuan Xue Lim is an unknown quantity at this point
Send a message via AIM to Yuan Xue Lim
Re: Camera problems(c++)

Quote:
Originally Posted by Maxpower57 View Post
is this the 2 color tracking program or the vision demo?
I used the example project provided in the windriver.
is call the twocolordemo
__________________
[font="Fixedsys"][b]We Don't Hope We will.
  #6   Spotlight this post!  
Unread 01-02-2009, 16:03
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
Re: Camera problems(c++)

Im not familiar with that code, sorry.
I'd add some printf's and see if you can find why the servos are moving when they do.
did you transplant this code from the demo into your code? cause if you did, i'd make sure to destroy the environment and make sure nothing else is affecting the servos.
__________________
  #7   Spotlight this post!  
Unread 01-02-2009, 16:06
Yuan Xue Lim's Avatar
Yuan Xue Lim Yuan Xue Lim is offline
Electrical Programmer
FRC #3017 (Project Genesis)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: NY
Posts: 37
Yuan Xue Lim is an unknown quantity at this point
Send a message via AIM to Yuan Xue Lim
Re: Camera problems(c++)

hmm ok
I'll see what i can do to deal with the problem.
Thanks for helping
__________________
[font="Fixedsys"][b]We Don't Hope We will.
  #8   Spotlight this post!  
Unread 01-02-2009, 17:41
Eric24's Avatar
Eric24 Eric24 is offline
Registered User
FRC #1138 (Eagle Engineering)
Team Role: Programmer
 
Join Date: Mar 2008
Rookie Year: 2007
Location: Northridge, CA
Posts: 30
Eric24 is an unknown quantity at this point
Send a message via AIM to Eric24
Re: Camera problems(c++)

I had a similar issue with the code myself and I just found a way around it today. The problem lies within the value of verticalPosition. I discovered that it never gets assigned a value so I made my own variable to use in place of it and that seemed to solve my problem. Good luck, and just let me know if you have any other questions.
__________________

  #9   Spotlight this post!  
Unread 01-02-2009, 18:40
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Camera problems(c++)

try this:

change
Code:
// you may need to reverse this based on your vertical servo installation
				//incrementV = verticalPosition - verticalDestination;
				incrementV = verticalDestination - verticalPosition;
to

Code:
// you may need to reverse this based on your vertical servo installation
				incrementV = verticalPosition - verticalDestination;
				//incrementV = verticalDestination - verticalPosition;
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
  #10   Spotlight this post!  
Unread 01-02-2009, 19:47
Yuan Xue Lim's Avatar
Yuan Xue Lim Yuan Xue Lim is offline
Electrical Programmer
FRC #3017 (Project Genesis)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: NY
Posts: 37
Yuan Xue Lim is an unknown quantity at this point
Send a message via AIM to Yuan Xue Lim
Re: Camera problems(c++)

I will add those into my checklist
Also how can i decrease the lagging of horizontal servo during the searching period?
by lowering the framrate or the pixel?
__________________
[font="Fixedsys"][b]We Don't Hope We will.
  #11   Spotlight this post!  
Unread 01-02-2009, 20:12
Eric24's Avatar
Eric24 Eric24 is offline
Registered User
FRC #1138 (Eagle Engineering)
Team Role: Programmer
 
Join Date: Mar 2008
Rookie Year: 2007
Location: Northridge, CA
Posts: 30
Eric24 is an unknown quantity at this point
Send a message via AIM to Eric24
Re: Camera problems(c++)

Try changing the resolution from 320x240 to 160x120, that seemed to speed things up for us.
__________________

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
Camera Problems!!! spsteam1512 Programming 0 12-02-2007 13:45
Camera Problems CMB Programming 2 02-02-2007 18:24
Camera Problems 804_twidget1 Electrical 4 27-01-2007 11:28
camera scope problems xrabohrok Programming 4 15-01-2007 20:48
Camera Problems pickle Programming 21 20-01-2005 20:43


All times are GMT -5. The time now is 02:22.

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