View Single Post
  #3   Spotlight this post!  
Unread 02-03-2011, 16:22
timothyb89 timothyb89 is offline
code monkey
FRC #1977 (Loveland High Robotics)
Team Role: Alumni
 
Join Date: Oct 2008
Rookie Year: 2009
Location: Loveland, Colorado
Posts: 45
timothyb89 will become famous soon enough
Re: Tweaked SmartDashboard for Image Overlays

Glad to hear you find this useful!

We've pushed some new updates to clean up the dashboard itself (better theme, standardized field labels, etc) that also allows colored overlays. It's great for coloring particles that meet certain parameters (size, quality, position, etc) and the like. I'll be updating to original post with the new info soon.

Edit: or not, guess you can't edit opening posts or something to that extent...

Anyway, there's one new file added with predefined color constants: here

ModdedSmartDashboard.java has also been updated (same link as before). New changes include...
  • a "getColorCode(int red, int green, int blue)" method for converting RGB values into single-int form (needed to sent to the dashboard.
  • new "overlay(int x, int y, int width, int height, int color)" method that allows you to specify the color. The "color" parameter is optional and defaults to black if not specified.

The dashboard has also been tweaked, you can just "svn update" to get the updates. If there's any, well, weirdness... we may have gotten a bit bored while waiting around, so there's a chance some unexpected surprises may pop up (hopefully not though).

Again, hopefully this can help out some other teams!
__________________
FRC-DB: A detailed, web-based scouting database for FRC teams with lots of interesting statistics.

Last edited by timothyb89 : 02-03-2011 at 16:32.
Reply With Quote