WIP Wastegate pressure depending on coolant temperature

Discussion in 'Programming' started by Wymberto, Mar 9, 2025.

  1. Wymberto

    Wymberto
    Expand Collapse

    Joined:
    Mar 9, 2025
    Messages:
    2
    How could i implement a function to lower turbo PSI automatically when the coolant gets too hot? Currently i've got this script, which doesn't work:
    {
    "tbcu": {
    "information":{
    "authors":"Wymberto",
    "name":"Boost Controller",
    "value":250,
    },
    "slotType" : "tbcu",
    "controller": [
    ["fileName"],
    ["driveModes"]
    ],
    "driveModes": {
    "enabledModes":["Controlled","Max"]
    "defaultMode": "Controlled"
    "defaultSettings": [
    ["type"]
    ["turbocharger", {"name": "mainEngine", "wastegateOffset": -30}],
    ],
    "modes": {
    "Controlled": {
    "name": "Temp Regulated",
    "order": 10,
    "settings": [
    ["type"]
    ["turbocharger", {"name": "mainEngine", "wastegateOffset": 90 - coolantTemperature}],
    ],
    },
    "Max": {
    "name": "Max Turbo",
    "order": 20,
    "settings": [
    ["type"]
    ["turbocharger", {"name": "mainEngine", "wastegateOffset": 0}],
    ],
    },

    },
    },
    },
    }
     
  2. RobertGracie

    RobertGracie
    Expand Collapse

    Joined:
    Oct 15, 2013
    Messages:
    3,859
    Thats a @synsol question I think, but that would actually be quite useful in the game to have that ability to reduce boost when the temperature exceeds a specific temperature to reduce the head soak through the engine
     
    • Agree Agree x 1
  3. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    2,056
    The Anti-lag Turbo mod has turbo-normalization(higher boost at high altitude), part of its code might be useful for temperature compensation, you can ask @gt02 for help
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice