View Single Post
  #2   Spotlight this post!  
Unread 18-12-2015, 19:05
euhlmann's Avatar
euhlmann euhlmann is online now
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 322
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