Quote:
|
Originally Posted by Astronouth7303
I would say to save it if the main battery voltage dips below a certain point. As long as the backup is installed, you should be OK with this.
|
I wouldn't recommend this. If your battery dies while writing to EEPROM you could corrupt it. Using the voltage dropping as a trigger will greatly increase the odds that you're trying to write as the power dies, obviously. Plus, if you suddenly cause a large current drain on your robot (for example, at the beginning of the match with both sticks forward), you could end up trigger ing your write routine, which personally I wouldn't want running at all during a match in case something goes wrong with it and because it wouldn't get the same level of testing as the rest of your code.