Go to Post Break Robot. Re-engineer. Repeat! - Mr MOE [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-08-2009, 12:20 PM
vb_master's Avatar
vb_master vb_master is offline
Registered User
FRC #2428
 
Join Date: Feb 2009
Location: Pittsburgh
Posts: 1
vb_master is an unknown quantity at this point
TwoColorTrackDemo Vertical Sweep

Hey everyone. I am the only programmer on my team and I am having problems with the TwoColorTrackDemo project. The camera will lock onto our colors and track them, but it will not move the camera up or down vertically when the colors are moved up and down. It only stays in the normalized positions, with seemingly random shifts up and down. Uncommenting
Code:
incrementV = verticalPosition - verticalDestination;
and commenting out the other one seemed to have no effects on the vertical sweep.

Horizontal sweeping works fine, however.

Any suggestions of how to fix this would be greatly appreciated.

The servos are in their correct ports and are recieving power. The camera is of course set up correctly.

Last edited by vb_master : 02-08-2009 at 12:45 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-08-2009, 12:50 PM
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: TwoColorTrackDemo Vertical Sweep

If you mounted your camera upside down or made your gimbal the opposite of the way the code expected, you wouldn't see random movements, but opposite movements. This would quickly cause the camera to lose the target.

I think it is pretty easy to swap the movements in the C code.

Greg McKaskle
Reply With Quote
Reply


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
problem with TwoColorTrackDemo-v2 mahmosh C/C++ 5 01-20-2009 09:30 AM
Team 867 is going to sweep the competition seanl Robot Showcase 10 03-10-2008 05:11 PM
Size of the Pan-Tilt's Sweep? geeknerd99 Programming 1 01-27-2006 08:25 PM
Vertical bar interaction Madison Rules/Strategy 5 01-10-2004 04:22 PM
vertical conveyor belt ahecht Technical Discussion 3 02-15-2002 04:16 PM


All times are GMT -5. The time now is 10:13 AM.

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