|
Ive been thinking about this EEPROM idea over lunch - its a cool idea
but taking two steps back, if your robot was reset during auton mode, then something drastic has happened to it:
- it got lost and smacked a wall
- it got nailed by a superiour being (a faster bot)
- you have a loose wire somewhere...
so given that you dont know what is going to cause the robot to reset during auton mode, you cant possible know what to do when your RC resets, except maybe shutdown and do nothing?
Error detection is one of those weird problems in engineering. Its usually very easy to detect than some sort of error has happened (like an unexpected reset) - and its almost always impossible to decide what to do next - except log an error message and shut down.
If you could anticipate the error condition, then you can program / design the system to expect it, and handle it the way you want - thats not an error condition anymore, its another variable in your more robust system's normal operation :c)
|