View Single Post
  #1   Spotlight this post!  
Unread 03-23-2016, 07:47 PM
sandiskthefrog sandiskthefrog is offline
Registered User
FRC #0503
 
Join Date: Mar 2016
Location: Michigan
Posts: 4
sandiskthefrog is an unknown quantity at this point
How to add custom widget to smart dashboard?

Hi!

I'm working on a widget that'll change the background of SmartDashboard to green when we ought to shoot and make it red when we shouldn't shoot. The should/shouldn't shoot shoot is handled in our code, but I don't know what to do about the widget.

I downloaded the code found in this thread this thread. And I've uncommented the code to set the color correctly. Thing is, now I don't know how to get that widget onto smartdashboard and activate it when I need to. Help?

If anyone has a better way of accomplishing what I've described with the background color, please feel free to chime in. Thanks.
Reply With Quote