View Single Post
  #4   Spotlight this post!  
Unread 26-12-2006, 19:02
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Changing tracked color

Quote:
Originally Posted by divergentdave View Post
That will work if you just want to track a different color for the whole game, but it sounds like you want to switch to a new color after you've been tracking one color for a while. If you want to change colors on the fly, then you'll need to send a \r to the camera to stop tracking the current color, and then send it a new TC command with the new color.
This is correct. Changing the defines will change the color the camera tracks, but to change the defines requires you to recompile, which is difficult to do on the field. You will want to write some functions to re-initialize the color tracking on the camera on the field, updating it with the new color values to track.