Go to Post Safety is everyone's job. - Wetzel [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

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-06-2015, 12:49 AM
kylelanman's Avatar
kylelanman kylelanman is offline
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 185
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
RoboRio Losing WPILib Preferences

Team 2481 is trying to use the Preferences class in WPILib this year to store persisted settings rather than using our own similar solution from previous years. The smart dashboard widget is primarily what made it appealing. We are storing things like encoder offsets and PID values for our closed loop controllers.

Modifying code and redeploying works as we would expect. The settings we put into the preferences are persisted to flash and they load back up when we relaunch our program. For what it is worth we are calling save when we change settings.

When the robot is rebooted or power cycled it is hit or miss whether or not our settings get completely blown away or if they load up. About 1 in 3 reboots we loose our settings. The settings all still show up in the SmartDashboard but in order for the robot to actually use them we have to change them slightly then change them back to the actual value that should have been persisted.

Has anyone else experienced similar results or is this problem unique to us.

Thanks in Advance!!

Kyle
__________________
"May the coms be with you"

Is this a "programming error" or a "programmer error"?

Reply With Quote
 


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 10:10 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