some people just can't deal with code that well. i still have some issues with the way arduino code works and i've had some pretty extensive work doing assembly for the motorola 6800s. i can use a 6800 derivative to do nearly anything i would ever want to do with assembly, but getting more complex than simple A/D and outputs on arduino makes me feel pretty green.
if someone more knowledgable than anybody completely new to programming can write code to make the arduino work, that would be quite simple(and easily adaptable for more situations) and it is a pretty nice route to go. that little sketch does look like it would be all that is required, but i could be wrong.
i actually have a somewhat similar situation myself, i have a boost guage that doesn't seem to operate in a linear fashion.... depending on where in its range it is supposed to be, sometimes the needle swings too high, sometimes too low..... i need to learn how to deal with arrays and make a calibration table for it.
__________________
|