Hi,
I successfully figured out the way to do a linear conversion (using the SI 80-85). Thing is, when i tried to code it myself, I found out that I was losing precision because of the result of (y2-y1)/(x2-x1) to find 'm' because most of the time the result is going to be a float but all we can use is an integer. So for example, if the result of your equation is 4.356, you are going to have 4 into your integer address. So that when you multiply this result to the X in "mx+b", the error is just getting bigger.
4,356 * 2456 = 10 698.336
4 * 2456 = 9824
As you can see, this doesn't make any sense.
Now that I am trying to configure a Paddle Wheels wired on the HSC inputs, I need to find a way to use a float because of the K Factors.
http://www.gfsignet.com/go/BB79FC98D60EB5FC00B3D2B195180094?action=GF_DocumentDownload&doc_uuid=BB79FC98D60EB5FC00B3D2B195180094
I can't accept that big of an error. Any idea how i could "create" a float using signed integers with this module?