-
-
Notifications
You must be signed in to change notification settings - Fork 5
Part Transmission Function
Ferdinand Calo edited this page Jan 26, 2021
·
4 revisions
# Function Overview
Name: TransmissionFunction
Function: marks the part as Transmission and stores transmission related values
From FVTM: yes
The Transmission Function allows you to set a part as Vehicle Transmission.
If you want your vehicle to work in the BasicSystem it needs a Transmission installed!
Example config:
{
"__comment": "Part JSON file.",
"Function": {
"id": "fvtm:transmission",
"gear_ratios": [ -3, 0, 3, 2, 1, 0.5 ],
"automatic": false,
"throttle_ratios_up": [ 0.35, 0.5, 0.75 ],
"throttle_ratios_down": [ 0.25, 0.4, 0.6 ],
"efficiency": 0.7,
"shift_speed": 40
}
}
Here an overview of the available fields:
-
id
- the id of the function, it isfvtm:transmission
-
gear_ratios
- optional, custom gear ratios, no limit, please specify
from highest (reverse) gear to highest (forward) gear, including "0" (neutral) -
efficiency
- optional, transmission efficiency, default0.7
-
automatic
- optional, if this transmission is automatic, defaultfalse
All bellow are for when the transmission is automatic
:
-
throttle_ratios_up
- optional, json array with 3 values
throttle-to-rpm ratio based on which auto-gear-shifting is shifting UP,- first value is for throttle bellow 30%
- second value is for throttle bellow 70%
- third value is for throttle above 70%
-
throttle_ratios_down
- optional, json array with 3 values
throttle-to-rpm ratio based on which auto-gear-shifting is shifting DOWN,- first value is for throttle bellow 30%
- second value is for throttle bellow 70%
- third value is for throttle above 70%
-
shift_speed
- optional, interval between auto-gear-shift attempts, default40
Need help in something that is not in the wiki, or is not there yet? Got issues or crashes?
Or want to help expand the Wiki? We have a discord server! https://discord.gg/AkMAzaA