Go to Post IF WildstangIsAwesome = True and SkaIsAwesome THEN Act = AWESOME End IF - Rohith Surampudi [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 18-02-2005, 18:28
cprogrammer's Avatar
cprogrammer cprogrammer is offline
Registered User
FRC #1595 (Gremlins)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Washington
Posts: 42
cprogrammer will become famous soon enoughcprogrammer will become famous soon enough
Default Camera Code Flowchart

Does a flowchart or anything equally useful exist that could explain the Default Camera Code?
If so, please post it for everyone's benefit.

Thanks
  #2   Spotlight this post!  
Unread 27-02-2005, 11:04
kokodabear's Avatar
kokodabear kokodabear is offline
HELP!
AKA: Brady
#0686 (Bovine Intervention)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Frederick, MD
Posts: 13
kokodabear is an unknown quantity at this point
Send a message via AIM to kokodabear
Re: Default Camera Code Flowchart

Quote:
Originally Posted by cprogrammer
Does a flowchart or anything equally useful exist that could explain the Default Camera Code?
If so, please post it for everyone's benefit.

Thanks
If we are using camera and not in autonomous mode then...
1: Initialization
Wait 1 second -> Set exposure values (Blink OI if no camera detected and wait) -> Enable auto servo mode

2: User Input (If initialization succesful)
port 2 top: cycles camera servo rotation
port 2 trig: cycles color to be tracked (enables tracking & displays on OI)

3: Tracking (Once initialization completed and trig 2 tapped and trig 1 held)
If we detect color then:
Use auto servo mode's servo rotation as p1_x
Use speed_control as p1_y
Use these values to simulate 1 joystick driving

Otherwise:
Default Drive
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
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Combined Camera and PID/Encoder Code Terry Sherman Programming 1 14-03-2005 17:59
Trying to import Camera code into program without. Kingofl337 Programming 1 18-02-2005 00:43
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11


All times are GMT -5. The time now is 04:40.

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