Go to Post Will.I.Am is not FIRST. - BrendanB [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 27-01-2014, 19:30
pr0ph3t pr0ph3t is offline
Programming and Controls Mentor
AKA: Jeff Ousley
FRC #3528 (Up Next)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Missouri
Posts: 21
pr0ph3t is an unknown quantity at this point
SFX (SmartDashboard 2.0) loading config files

We're trying to use SmartDashboard 2.0 (sfx). So far so good. We've gotten it to load with the DriveStation just fine (although we had to be sure 32bit Java was installed and handling .jar files).

We're having trouble figuring out how to properly load a previously saved configuration (.fxsdash) file. Is the command line option -fx? We've tried adding both of these to the end of the command in "FRC DS Data Storage.ini":

Code:
-fx c:\\test.fxsdash
Code:
-fx:c:\\test.fxsdash
Has anyone figured out how to automatically load .fxsdash files?
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2014, 22:34
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: SFX (SmartDashboard 2.0) loading config files

Quote:
Originally Posted by pr0ph3t View Post
Has anyone figured out how to automatically load .fxsdash files?
You write a script to click the "open button" and then browse to the file [/snark]

This is the most requested feature so far and will be implemented as a single param
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2014, 22:44
pr0ph3t pr0ph3t is offline
Programming and Controls Mentor
AKA: Jeff Ousley
FRC #3528 (Up Next)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Missouri
Posts: 21
pr0ph3t is an unknown quantity at this point
Re: SFX (SmartDashboard 2.0) loading config files

Thanks for the response! Do you have any idea when it will be available?
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2014, 23:01
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: SFX (SmartDashboard 2.0) loading config files

Quote:
Originally Posted by pr0ph3t View Post
Thanks for the response! Do you have any idea when it will be available?
Probbably when I can figure out how to type ARGV instead of ARGS.

Its should be building on Jenkins soon: http://frcbuilder.wpi.edu:8190/job/Smartdashboard2/ (build #62, grab the zip file when #62 is done)

Pedantic PS: they are called save files or documents or dashboards, not config files, which implies global SFX settings
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2014, 23:55
pr0ph3t pr0ph3t is offline
Programming and Controls Mentor
AKA: Jeff Ousley
FRC #3528 (Up Next)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Missouri
Posts: 21
pr0ph3t is an unknown quantity at this point
Re: SFX (SmartDashboard 2.0) loading config files

Thanks, Patrick. I'll take a look!
Reply With Quote
  #6   Spotlight this post!  
Unread 28-01-2014, 10:38
pr0ph3t pr0ph3t is offline
Programming and Controls Mentor
AKA: Jeff Ousley
FRC #3528 (Up Next)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Missouri
Posts: 21
pr0ph3t is an unknown quantity at this point
Re: SFX (SmartDashboard 2.0) loading config files

Hi Patrick, I downloaded the latest zip. Is the cli option -fx ? I'm not familiar enough with the source code to have spotted it yet. I'll look further later on.
Reply With Quote
  #7   Spotlight this post!  
Unread 28-01-2014, 10:49
pr0ph3t pr0ph3t is offline
Programming and Controls Mentor
AKA: Jeff Ousley
FRC #3528 (Up Next)
Team Role: Coach
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Missouri
Posts: 21
pr0ph3t is an unknown quantity at this point
Re: SFX (SmartDashboard 2.0) loading config files

Never mind. Found it. It's just:

java -jar sfx.jar <filename>

My "FRC DS Data Storage.ini" entry of:

Code:
DashboardCmdLine = "java -jar C:\\Users\\jousley\\sunspotfrcsdk\\tools\\sfx\\sfx.jar c:\\test.fxsdash"
works just fine. Thanks for your help!
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 11: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