Solved How to prevent wheelspin from traction control?

Discussion in 'Mod Support' started by dumpling, May 20, 2022.

  1. dumpling

    dumpling
    Expand Collapse

    Joined:
    Jan 28, 2021
    Messages:
    532
    Hi, I am currently working on a Toyota 4Runner mod made by @JorgePinto, and I found out that there is an Active traction control that limits the car's wheelspin. I'm just wondering if this is possible to achieve in-game through traction control or if it is possible in any other ways? Thanks
     
  2. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    1,651
    Just copy the Driving&Safety Electronics in an official vehicle (K-Series, Vivace, etc.) or from JorgePinto's Defender mod. Make sure to add the corresponding controller on the differential part as well
     
  3. dumpling

    dumpling
    Expand Collapse

    Joined:
    Jan 28, 2021
    Messages:
    532
    I must have wrote it in a misleading way. :) I know how to do that, but my actually question is how to stop wheelspin with traction control and what values can I modify inside of the file to achieve that goal. Since the default traction control values does not have a big impact on limiting the wheelspin. I hope this makes sense to what I'm really trying to say.
     
  4. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    1,651
    Take an example of etk800_dse_tc.jbeam
    Code:
        "etk800_DSE_TC_AWD": {
            "information":{
                "authors":"Diamondback",
                "name":"Traction Control (AWD)",
                "value":250,
            },
            "slotType" : "etk800_DSE_TC",
            
            "controller": [
                ["fileName"],
                ["drivingDynamics/supervisors/tractionControl" {"name": "tractionControl"}]
                ["drivingDynamics/supervisors/slipProviders/virtualSpeedSlip"]
                
            ],
            
            "tractionControl": {
                "tractionControlledMotors": ["mainEngine"]
            }
            "motorTorqueControl": {
                "useForTractionControl": true,
                "tractionControl": {
                    "wheelGroupSettings":[
                        ["motorName",   "slipThreshold",    "kP",   "kI",   "kD",   "integralInCoef",   "integralOutCoef"],
                        ["mainEngine",  0.2,                 2.5,    0.8,    0,      20,                 2]
                    ]
                }
            }
            
            "brakeControl": {
                "useForTractionControl": true,
                "tractionControl": {
                    "wheelGroupSettings":[
                        ["motorName",   "slipThreshold",    "slipRangeThreshold",   "maxVelocity"    "kP",   "kI",   "kD",   "integralInCoef",   "integralOutCoef"],
                        ["mainEngine",  0.1,                0.05,                    30,             1,      1.5,    0,      20,                 2]
                    ]
                }
            }
        },
    There are throttle cut "motorTorqueControl" and brake"brakeControl" to limit wheelspin
    Reduce "slipThreshold" and/or increase "kP" may help in further recuse wheelspin
     
  5. dumpling

    dumpling
    Expand Collapse

    Joined:
    Jan 28, 2021
    Messages:
    532
    Thanks! That's what I really wanted to see. :)
     
  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