FIR3x Fuel Meter 1.0.0
======================

The official measuring tool of the FIR3x Toolbox Fuel Board: a UI app for BeamNG.drive that measures how much
fuel (L/100 km) or electricity (kWh/100 km) a car uses over a test drive.

Install
-------
Put fir3x_fuel_meter.zip in your BeamNG user folder's mods folder (do not unpack it), start the game, open the UI
apps (Esc > UI Apps, or Ctrl+Space in older versions), find "FIR3x Fuel Meter" under Vehicle info and add it.

Measuring a run
---------------
1. Check the car's name: it is filled in from the vehicle and can be changed to how it should read on the board.
2. Choose the test (Highway 100 km/h, Highway 150 km/h, Traffic Combined, City), as described on the site's
   "How we test" page. Leave the board on Automatic unless the car is a hybrid.
3. Press Arm and drive off: counting starts when the car moves. (Untick "Start counting when I drive off" to start
   at once with Start.) "Stop at" finishes the run by itself at a set distance.
4. Drive the route, then press Finish.
5. Press "Copy result" and paste it into the site: Admin > Fuel Board > Import from the Fuel Meter.

How it measures
---------------
- Distance: the car's true speed over the ground, so wheelspin does not add distance.
- Fuel: the litres taken out of every fuel tank.
- Electricity: the energy taken out of every battery, net: what regenerative braking puts back is subtracted.

When a run is not valid
-----------------------
The result is marked "Not valid for the Fuel Board", and the site will not import it, when during the run:
- the vehicle was reset (this refills the tank and moves the car),
- fuel was added or the battery recharged,
- a fuel tank was damaged and leaking,
- the vehicle was teleported,
- or the run was shorter than 2 km, or nothing was consumed.

Warnings do not stop a result from counting: driving less than 80% of a target-speed test within 5 km/h of the
target, or a hybrid using both fuel and battery (choose its board and run it again).

Every finished run is also saved as JSON in your user folder, under fir3xFuelMeter/runs/.

Files
-----
ui/modules/apps/Fir3xFuelMeter/   the app (what you see)
lua/vehicle/extensions/fir3xFuelMeter.lua   the measuring, inside the car
