XML Conversion bug

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>

Thanks for reporting, will run some tests.

While we are doing that, please make sure that the gauge range is set in a way that it shows values below 0:

  • In edit mode, select gauge
  • Go to ‘Input & Values’
  • Check that value range ‘min’ is a negative value.

no sure what happened but tonight its working…
I tried so many times the other night and nothing was working. Maybe a reboot did it…

1 Like