Fuel Used

Deborah 5 years ago

Hi,
My gps transmit the FuelUsed attribute correctly, but when I look at the summary, the fuel consumed column is always at 0. How can I fix it?
Thanks

Anton Tananaev 5 years ago

It uses fuel level attribute.

Deborah 5 years ago

Do you know if there is a way to use the fuel consumed? unfortunately my car does not display the remaining fuel

Anton Tananaev 5 years ago

Not at the moment. You can potentially use computed attributes to calculate "fake" fuel level.

Deborah 5 years ago

Perfect, thank you. I created an attribute calculated using the following formula:

10000 - fuelConsumed

I noticed however that the resulting value, is rounded and does not save the decimal values, so if I make a trip where I consume only 0.8 liters for example, I get marked 0. Am I missing something?

Anton Tananaev 5 years ago

Does fuelConsumed have decimal places?

Deborah 5 years ago

yes he has them

Deborah 5 years ago

I solved. I had set a value too high, now it also marks the decimals.
Thanks so much

netluca1 5 years ago

@nikkk hello nicola can you post the formula used
Thank you

Deborah 5 years ago

I use:
return 999999 - fuelUsed