by JulianEdgar on Mon Oct 27, 2014 4:18 pm
OK easiest way proved to be in channel maths - just use a filter (with a constant of 5000) on the instantaneous fuel consumption channel. That gives a rolling average of about 5 minutes - I just trialled different constants until it seemed about right.
However, I have another issue.
I am using two expressions in the ADL3 advanced maths:
('Fuel Inj Duty'[ratio]*0.643*60)/('GPS Speed'[km/h])*100
- with the output channel of 'Ins Fuel Econ'
This gives me instantaneous fuel economy in litres/100km and works well. However, to avoid it showing silly stuff when the car is stopped (and wrecking averages like the 5 minute filter described above), I have added:
choose('Drive Speed Left'>1,'Inst Fuel Econ',0)
- which returns a value of 0 for Inst Fuel Econ when speed is les than 1 km/h. It uses channel output User Math 1.
The problem is that User Math 1 then has no decimal places - just whole units. I need at least one decimal place (and preferably two) in this output channel.
How do I get back my missing decimal places? I have tried adding the units, multiplying by 100 at an earlier stage and then subsequently dividing - nothing seems to work.