Go to Post [I] [/I]I think this may be some kind of record. We got through 9 entire posts before someone mangled the spelling of mecanum. [I] [/I] - Ether [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-02-2007, 23:02
Ianuser Ianuser is offline
Registered User
FRC #0570
 
Join Date: Feb 2007
Location: new york
Posts: 64
Ianuser is an unknown quantity at this point
Where do I begin to get the robot to move using the camera?

This is what I have? I haven't done anything with turning the robot to the correct degree, I'm not very good at this stuff and I'm the only programmer and electrician on the whole team of 5, so i'd really like some help. Here is what I have for this:

Code:
if(Get_Camera_State() == 1)
	{
		if((Get_Tracking_State() == CAMERA_ON_TARGET) && (Find_Distance > set closest range)
		{
			pwm01 = desired forward velocity;
			pwm02 = same forward velocity;
			Switch3_LED = 1;
		}
		else if((Get_Tracking_State() == CAMERA_ON_TARGET) && (Find_Distance() <= set closest range))
		{
			pwm01 = 127;
			pwm02 = 127;
			Camera_Idle(); //Sets Camera in OFF mode so manual mode can continue.
			Switch3_LED = 0;
		}
		else
		{
			Switch3_LED = 0;
		}
Does any of this make sense? I think that Camera_Idle() will stop the whole process of moving the camera around, right? Later I have a button that I press that calls the Restart_Camera funciton which I think undoes the Camera_Idle() process, right? wrong? some help would be great. Also, will this work with moving the robot forward while the CAMERA is on target and the range (Find_Distance) is greater than the range that we want to be at when the robot stops. It looks to me like it would make sense but I realyl don't know what I'm doing. Thanks a bunch everybody.
 


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
Building the field :: where can I get the carpet? Armando Gonzalez Technical Discussion 10 12-01-2007 14:14
Where in the world is the new 2007 cmu camera docs?!?!? xrabohrok Programming 13 08-01-2007 20:28
Where do we get more extention wires for the Vex robot? pbrules15 Technical Discussion 5 27-01-2006 07:48
how do u figure out the torque req'd to move a robot? Salik Syed Technical Discussion 11 03-11-2004 08:12
Using Robotics to get the girl necroprime Chit-Chat 66 21-03-2003 23:21


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

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