View Single Post
  #2   Spotlight this post!  
Unread 08-02-2006, 17:09
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Camera locked on

Quote:
Originally Posted by railerobotics
I have searched forever in the code but I cannot find a variable that says if the camera is or isn't locked on to the target. In atonomous I have trying to make our cannon fire once that the camera is locked on the the target.
Look in terminal.c in Kevin's camera code. Basically, you can check the value of T_Packet_Data.my, T_Packet_Data.pixels, or T_Packet_Data.confidence.