ngkdc
07-07-05, 06:56 PM
Good evening all,
I'm trying to develop a lookup table (actually a calibration table for the ServoPod's 16 ADC channels) that can be read on startup to get the current calibration values. I also want access to each of these values (to change them) when I recalibrate. I really don't want to have to reload the application after editing values each time a calibration is required. Further, I can't simply update the variable because a power loss will cause any change to be lost.
I've noticed that the EEAVAIL number doesn't appear to change from freshly scrubbed to fully loaded ... is this a viable option? If so, how would I go about creating variables (floating point no less) in this space, and then writing and reading? I think I've gotten everything else figured out ... calibration routines and so on ... just need a push in the right direction on non-volatile writes and reads. Once I have this ability, my program will fetch the calibration data and load my regular program variables. Recalibration will include a restart so the new values get grabbed!
I had wrestled with the ADC on the ServoPod ... and have some solutions to write up (pending approval from my boss).
Regards,
Rick
I'm trying to develop a lookup table (actually a calibration table for the ServoPod's 16 ADC channels) that can be read on startup to get the current calibration values. I also want access to each of these values (to change them) when I recalibrate. I really don't want to have to reload the application after editing values each time a calibration is required. Further, I can't simply update the variable because a power loss will cause any change to be lost.
I've noticed that the EEAVAIL number doesn't appear to change from freshly scrubbed to fully loaded ... is this a viable option? If so, how would I go about creating variables (floating point no less) in this space, and then writing and reading? I think I've gotten everything else figured out ... calibration routines and so on ... just need a push in the right direction on non-volatile writes and reads. Once I have this ability, my program will fetch the calibration data and load my regular program variables. Recalibration will include a restart so the new values get grabbed!
I had wrestled with the ADC on the ServoPod ... and have some solutions to write up (pending approval from my boss).
Regards,
Rick