I’m trying to convert an ADC signal received to a 0-100 fuel level but I have a problem in my xml for the conversion of the value.
Here is my line
<value targetId="170" units="%" offset="4" length="2" conversion="-0.0531*V+100.1594" ></value>
But it’s not working
Then I tried something simple like
<value targetId="170" units="%" offset="4" length="2" conversion="V*2" ></value>
And this is also working
But as soon as you have a negative number I dont know how to make it work. Any idea?
This doesnt work
<value targetId="170" units="%" offset="4" length="2" conversion="V*-2" ></value>