Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Default Camera Code Flowchart (http://www.chiefdelphi.com/forums/showthread.php?t=34928)

cprogrammer 18-02-2005 18:28

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

kokodabear 27-02-2005 11:04

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


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi