Go to Post Our robot attacked our programmer autonomously. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-12-2015, 12:42
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 258
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
SmartDashBoard unused objects

I have taken on the role mentoring two new programmers on the team in what is my first year with FRC. I'm learning too the system and tools available. What I have noticed is when I have the two different programmers who are on different laptops with similar but different code test (i.e. caps vs lowercase, underscores, or miss spellings) that when the next coder downloads their code into the robot and we observe the Smartdashboard we see many of the others items they sent to their Smartdashboard. I have been reading may threads on how the Robot and Smartdashboard shares data through Network tables and have either read past or missed how to clear the table. I'm assuming the "Key Name" is not found so a new "key" is created. I tried powering down the robot and clicking new on the Smartdashboard but will little luck. We have found at times with undocumented sequence of events the Smartdashboard does clear unused items. How do I clear the Smartdashboard keys of unused items?
  #2   Spotlight this post!  
Unread 23-12-2015, 12:52
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,113
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: SmartDashBoard unused objects

In the typical use case, every Network Tables variable gets replicated to the NT server (the robot) and each NT client program (e.g. Dashboard). As long as at least one program is running, a variable will persist indefinitely.

The simplest way to remove an obsolete NT variable is to restart both the robot and the dashboard at the same time, so that neither of them is able to copy the variable to the other.
  #3   Spotlight this post!  
Unread 23-12-2015, 13:02
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: SmartDashBoard unused objects

Quote:
Originally Posted by Alan Anderson View Post
The simplest way to remove an obsolete NT variable is to restart both the robot and the dashboard at the same time, so that neither of them is able to copy the variable to the other.
This is described in the smartdashboard documentation http://wpilib.screenstepslive.com/s/...smartdashboard
  #4   Spotlight this post!  
Unread 23-12-2015, 14:12
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 258
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: SmartDashBoard unused objects

Quote:
Originally Posted by Joe Ross View Post
This is described in the smartdashboard documentation http://wpilib.screenstepslive.com/s/...smartdashboard
Thanks for the link. This explains why exactly what I'm experiencing. I read a lot of pages on the smart dashboard. My attention span was waning. by the end of most papers.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi