Go to Post I think there is much to be learned from working in teams, and team projects, but even more when you go out on your own some time for something you are truly passionate about. - paul_v [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-31-2009, 12:38 PM
Team1710's Avatar
Team1710 Team1710 is offline
Registered User
FRC #1710
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Kansas City
Posts: 95
Team1710 is an unknown quantity at this point
1710 Code

I'm attempting to program a shooting turret based off the TwoColorTrackerDemo provided.

I've modified the code so that instead of moving servos on an x and y basis and calculating where they are, all I want to do is use the par.center_mass_x_normalized value (a value between -1 and 1) to set my turrent motor to turn left or right until its centered. So basicly, I'm writing code for a tankl like turret to spin until its centered on the x axis with the target.

The code is attached. The camera isn't even picking up the image when downloaded to the robot. I'm a novice programmer, but I'm the only one my team has and I figure letting some experts see this will save me a lot of time then my struggling through it for a few extra days that we don't have.

Thanks!!
Attached Files
File Type: zip TwoColorDemo.zip (3.7 KB, 38 views)
Reply With Quote
 


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
Team 1710 Needs a part FRC1710 Technical Discussion 2 01-21-2008 05:00 PM
pic: Team 1710 has a wroking Robot! FRC1710 Robot Showcase 6 02-15-2007 12:42 PM
Problems integrating CMUCAM code and IFI Default Code Windward Programming 2 02-06-2007 04:48 PM
problems using gyro/adc code with camera default code tanstaafl Programming 7 01-22-2006 11:09 PM
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 01-31-2005 10:28 PM


All times are GMT -5. The time now is 09:58 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