Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   get cam to stop (http://www.chiefdelphi.com/forums/showthread.php?t=53256)

team877 01-02-2007 21:59

get cam to stop
 
How can i get my robot to stop in autonomous mode when it gets so close to the light??

kitscuzz 01-02-2007 22:05

Re: get cam to stop
 
Try checking the tilt variable in tracking.c
If it exceeds a certain value, then your camera is looking really high up, and you need to stop.

Another idea (a bad one with the possibility of two lights), is to use blobsize. Blobsize is in the variable (unsigned int)T_Packet_Data.pixels

Note that both of these are aribtrary values, they depend on how you set up your equipment. If your light is sitting at the same height as your camera, the tilt will never change and the robot will never stop.

Jared Russell 02-02-2007 19:25

Re: get cam to stop
 
If your camera is on the servos, look at the tilt variable and do some trigonometry.

If your camera is not on a tilt servo, look at the y axis error and do the same thing.


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

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