Stormworks: Build and Rescue

Stormworks: Build and Rescue

评价数不足
Fuel Economy/Range Calculator
   
奖励
收藏
已收藏
取消收藏
Vehicles: Air, Sea, Creative, Land
标签: v0.10.33
文件大小
发表于
更新日期
13.927 KB
2020 年 7 月 27 日 上午 10:49
2020 年 8 月 1 日 上午 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 2023 年 6 月 5 日 下午 1:49 
does this still work?
rogervanbommel 2021 年 2 月 1 日 上午 7:15 
thanks
suntan 2020 年 11 月 6 日 上午 7:10 
Working great as designed thanks for making this.