View Single Post
  #2   Spotlight this post!  
Unread 09-12-2004, 09:44 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Saving a variable in between runs.

Quote:
Originally Posted by 527Paranoia
Can I save variables in between runnings of the robot.
Yes, you can.

You need to use the internal EEPROM of the PIC. I found a set of utility functions that claim to make it easy, but they didn't work reliably for me, and I never made the effort to find out why. I eventually "rolled my own" to save a couple of calibration values for position feedback.

Search the forums for "EEPROM" and you'll see what's already been done.