Go to Post I am sad that the Patriots lost, and I am happy for both teams that won...but I am even more thrilled that for the next two weeks robot building in the midwest comes to a standstill. ;) - Jessica Boucher [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-11-2016, 11:25
phurley67 phurley67 is offline
Programming Mentor
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Michigan
Posts: 72
phurley67 is an unknown quantity at this point
SFX Dashboard Tabs

Is it possible to change the name of a tab? Even better does anyone know a way to change the displayed tab, from the robot? For example switch from a an auton display to a different display for teleop.


Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 23-11-2016, 13:18
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 374
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: SFX Dashboard Tabs

I believe you can edit the file directly. It's a tar with YAML for the layout inside. Just change the "name" field for the tab
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #3   Spotlight this post!  
Unread 23-11-2016, 16:57
phurley67 phurley67 is offline
Programming Mentor
FRC #0862 (Lightning Robotics)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Michigan
Posts: 72
phurley67 is an unknown quantity at this point
Re: SFX Dashboard Tabs

Thanks, I peeked at the file and did not realize it was a tar file (I could see the yaml, but was not going to change it with all the binary noise at the top).

It worked, now if I could only figure out a way to switch tabs programatically.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-11-2016, 17:29
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 374
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: SFX Dashboard Tabs

Don't think it's possible. You should make your own dashboard; it's quite easy.

First, get the NetworkTables library. You can build the official C++ and Java libraries using the project source code (follow readme.md instructions, then add to your project in C++ or Java). There is also Python, C#, and node.js (disclaimer: my own project, used for my webkit smartdashboard)

Then, you can connect to the robot as follows (Java)
Code:
// sets the address to roborio-862-frc.local
// You can also use setIPAddress(String address)
NetworkTable.setTeam(862);
NetworkTable.setClientMode();
NetworkTable.init();

// the table for the WPILib SmartDashboard class
// Preferences and LiveWindow are Preferences and LiveWindow
NetworkTable smartDashboard = NetworkTable.getTable("SmartDashboard");
// the default value parameter is returned from get*() if the client is not connected
double defaultValue = 0;
System.out.println(smartDashboard.getNumber("myNumberVariable", defaultValue));
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
Reply


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 20:00.

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