Stormworks: Build and Rescue

Stormworks: Build and Rescue

Няма достатъчно оценки
Fuel Economy/Range Calculator
   
Награда
Добавяне към любими
В любими
Премахване от любими
Vehicles: Air, Sea, Creative, Land
Тагове: v0.10.33
Размер на файла
Публикуван на
Обновен на
13.927 KB
27 юли 2020 в 10:49
1 авг. 2020 в 7:18
4 бележки за промени ( преглед )

Абониране, за да се свали
Fuel Economy/Range Calculator

Описание
This small microcontroller can be used to get fairly accurate realtime estimates of vehicle range based off of speed and fuel use.

It does this by storing data (fuel use per second) for a set length of time, and averaging all the data points to generate an accurate estimate of fuel consumption per second. It then uses this value along with the current speed of the vessel and the remaining amount of fuel to give range (in kilometers).

This solves an issue seen in other fuel economy/range calculators where the fuel level change fluctuates rapidly because of the vessels movement, resulting in rapidly changing ranges. Because it is constantly gathering data, as the fuel use changes it will slowly adjust the calculated range.

To use in your creation, simply drop it in and connect a speed sensor (ideally set to horizontal mode), and fuel tank levels (has 2 inputs to support two separate tanks, but more tanks can be added easily) to the microcontroller, and connect the range output to whatever display suits you.

After placing it in your creation, select the length of time that data will be stored for use in the range calculation. Shorter time periods will cause the output to respond faster to changes in fuel economy, but be slightly less accurate in the long run, and fluctuate more rapidly. I recommend setting it for at least 10 seconds of data. Longer lengths of time will be more accurate but change more slowly. Use the largest setting if you don't plan on changing throttle very often (ideal for larger ships doing long trips).

Comment below with any questions!

Feel free to use in your creations, but if you put it on the workshop please give credit!

Thanks and enjoy!
Kelpbot
3 коментара
Lena_the_Dreadful 5 юни 2023 в 13:49 
does this still work?
rogervanbommel 1 февр. 2021 в 7:15 
thanks
suntan 6 ноем. 2020 в 7:10 
Working great as designed thanks for making this.