Go to Post Start respecting your mentors more or they might just leave. - Eric Bareiss [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 16-01-2014, 19:34
sarangmittal's Avatar
sarangmittal sarangmittal is offline
Registered User
FRC #1683 (Techno Titans)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Atlanta GA
Posts: 20
sarangmittal is an unknown quantity at this point
Question RobotPreferences in SmartDashboard 2.0

In our exploration of SmartDashboard 2.0, we noticed that SFX doesn't include RobotPreferences.

I was wondering if FRC was planning on adding RobotPreferences in an update sometimes soon.

If not, would it be terribly time consuming/difficult to write our own widget for RobotPreferences. We use RobotPreferences ALOT, so its pretty crucial that we have it.

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2014, 19:50
Ipiano's Avatar
Ipiano Ipiano is offline
Registered User
AKA: Andrew Stelter
FRC #3018 (Nordic Storm)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mankato, Minnesota
Posts: 27
Ipiano is an unknown quantity at this point
Re: RobotPreferences in SmartDashboard 2.0

I noticed the same thing, and likewise, we use it heavily; primarily to define our autonomous.

Our team was privileged to be a part of the control systems beta test, and, as the head programmer, I can say that the widget WAS implemented... or at least planned. The widget that existed didn't work very well. Additionally, there was the option to change widgets to different types after they were added, something that is stated as a feature in the tutorial on screenstepslive.

These two things lead me to believe that we do not have the final version for our use and that a new version will(hopefully) be released.

Until such time, the only thing I can suggest is to send a string variable to the SmartSashboard and then modify it on the dashboard and use a "Get" method to save it on the RobotPreferences in code.

--UPDATE--
A more viable workaround is running the old smartdashboard alongside the sfx dashboard with just the preferences widget visible. It works.

Also, I'm going to try writing a widget for it myself. All it needs to do is ftp the robot and modify/read the wpilib-preferences.ini file. If that goes anywhere I'll post it to GitHub
__________________
________
Genius is one percent inspiration and ninety-nine percent perspiration.
--Thomas A. Edison

Last edited by Ipiano : 20-01-2014 at 21:32.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2014, 16:52
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: RobotPreferences in SmartDashboard 2.0

Quote:
Originally Posted by Ipiano View Post
I noticed the same thing, and likewise, we use it heavily; primarily to define our autonomous.

Our team was privileged to be a part of the control systems beta test, and, as the head programmer, I can say that the widget WAS implemented... or at least planned. The widget that existed didn't work very well. Additionally, there was the option to change widgets to different types after they were added, something that is stated as a feature in the tutorial on screenstepslive.

These two things lead me to believe that we do not have the final version for our use and that a new version will(hopefully) be released.

Until such time, the only thing I can suggest is to send a string variable to the SmartSashboard and then modify it on the dashboard and use a "Get" method to save it on the RobotPreferences in code.

--UPDATE--
A more viable workaround is running the old smartdashboard alongside the sfx dashboard with just the preferences widget visible. It works.

Also, I'm going to try writing a widget for it myself. All it needs to do is ftp the robot and modify/read the wpilib-preferences.ini file. If that goes anywhere I'll post it to GitHub
Where is RobotPreferences mentioned? It is not in SFX as SFX is a re-write, and we have not yet added that control. That is the latest version, but we had to back out the "morph" command as it was too buggy to ship. (its just commented out in the fxml file if you want to play with it).

If you want to add robot preferences, you shouldn't need to manually do ftp, just grab it from the datacore. Look at the scheduler as its somewhat similar. Also feel free to send us a patch, we welcome it. If you encounter any issues, feel free to help document them.
__________________
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
  #4   Spotlight this post!  
Unread 28-01-2014, 21:10
Ipiano's Avatar
Ipiano Ipiano is offline
Registered User
AKA: Andrew Stelter
FRC #3018 (Nordic Storm)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Mankato, Minnesota
Posts: 27
Ipiano is an unknown quantity at this point
Re: RobotPreferences in SmartDashboard 2.0

I get it now!

I feel like a complete idiot right now.
I was expecting RobotPreferences to be implemented as they were in SmartDashboard 1.0, in a widget, not as part of the name-value pairs in the dataCore.

I'm extremely sorry for any confusion I may have caused in this topic.
__________________
________
Genius is one percent inspiration and ninety-nine percent perspiration.
--Thomas A. Edison
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:01.

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