Thread: get cam to stop
View Single Post
  #2   Spotlight this post!  
Unread 01-02-2007, 22:05
kitscuzz's Avatar
kitscuzz kitscuzz is offline
Not alotta posts
AKA: Kit
FRC #1389 (Worst Case Scenario)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Home
Posts: 47
kitscuzz will become famous soon enough
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.

Last edited by kitscuzz : 01-02-2007 at 22:08.