View Single Post
  #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