View Single Post
  #5   Spotlight this post!  
Unread 23-01-2011, 13:32
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Modifying image sent to Dashboard

You can use the ZomB Dashboard, It has multiple target tracking support. Once installed:
  1. make sure you team number is set (set it, then exit and re-open Visual ZomB)
  2. Add a camera view (see note at bottom)
  3. Click the ... button next to targets
  4. add targets, giving them names and setting colors (if desired)
  5. in java, send to the targets (see below)

Target format:
widthxheight+top,left where all numbers are normalized (-1 to 1)
z.Add("targetname", width+"x"+height+"+"+top+","+left);

camera view notes:
You must create a camera instance in your code, connecting to the switch directly is not supported yet (wait a few days)
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote