View Single Post
  #2   Spotlight this post!  
Unread 17-02-2013, 01:28
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Outputting distance on the dashboard

On the robot, put the value into a SmartDashboard variable with a name you like. Use the SD Write Number function.

On the Dashboard, create a numeric indicator with its label set to the same name you chose before. On the front panel, place the indicator in the Operations tab along with the existing example checkboxes and slider. On the block diagram, it sits outside the main While loop, disconnected from everything else. The Dashboard program contains code that will automatically update the indicator from the SmartDashboard variable.
Reply With Quote