Go to Post They call us super nerds. I say thank you :D - Gregor [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 12-10-2015, 03:06 PM
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 113
King Nerd III is an unknown quantity at this point
Preferences for Robot Through SmartDashboard

Hello,
My team is doing an offseason project and I've been playing around with the ability to set preferences for the robot through the SmartDashboard question. I haven't figured out a best place to retrieve those values yet (we use the Command Based robot, just incase that helps) and I was wondering if I could have multiple preference objects, probably one in each file we need a value. Is this something that will work? If so, will that mean that each time I create a preference object I need to have a different preferences window in the SmartDashboard?
Thanks,
Isaac
__________________
Isaac
Chief of Programming and Head of Autonomous Control
FRC Team 1410
Reply With Quote
  #2   Spotlight this post!  
Unread 12-18-2015, 07:05 PM
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: 298
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: Preferences for Robot Through SmartDashboard

Quote:
Originally Posted by King Nerd III View Post
Hello,
My team is doing an offseason project and I've been playing around with the ability to set preferences for the robot through the SmartDashboard question. I haven't figured out a best place to retrieve those values yet (we use the Command Based robot, just incase that helps) and I was wondering if I could have multiple preference objects, probably one in each file we need a value. Is this something that will work? If so, will that mean that each time I create a preference object I need to have a different preferences window in the SmartDashboard?
Thanks,
Isaac
From what I understand, there is only one instance of Preferences which you can access through Preferences->GetInstance()
Why do you need multiple preference objects? You can add an arbitrary number of values to the single instance.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-13-2016, 03:30 PM
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 113
King Nerd III is an unknown quantity at this point
Re: Preferences for Robot Through SmartDashboard

Quote:
Originally Posted by euhlmann View Post
From what I understand, there is only one instance of Preferences which you can access through Preferences->GetInstance()
Why do you need multiple preference objects? You can add an arbitrary number of values to the single instance.
Sorry for the long pause in the posting here, but yes, I figured it out. I have to create an object in each subsystem to use it. So far the Preferences has been really nice to use.
__________________
Isaac
Chief of Programming and Head of Autonomous Control
FRC Team 1410
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 09:16 AM.

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