Unsolved 4 wheel abs, there was an option?

Discussion in 'Mod Support' started by fufsgfen, Jul 27, 2018.

  1. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,774
    Somehow I remember that there were two ABS modes, 4 wheel mode, which did brake each wheel individually and then simple mode, that did work like 1 channel abs, operating all wheels simultaneously.

    However I have been looking that option for a while now and I can't find such.

    My memory lies to me that it was something like this 'abs4Wheel' however that perhaps did not work when I tested, but bit hard knowing as difference can be quite small in some cases.

    Have I been just dreaming and there never was such?
     
  2. mehio

    mehio
    Expand Collapse

    Joined:
    Jun 20, 2018
    Messages:
    153
    In Beamng or in real life? Because 2 wheel abs does exist in real life on certain trucks . I dont know if it does exist in beamng.
     
  3. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,774
    BeamNG...

    Ford Fiesta XR2i had ABS only at rear wheels, I believe only 1 channel, so either wheel getting locked up causes both wheels to get same anti-lock treatment.

    1 channel ABS did exists also in 4 wheel setups, if any of the 4 wheels was locking up, all wheels got anti-lock treatment, which of course increased braking distance quite a lot in some cases.

    Then most modern version is 4 channel, where each wheel is treated individually, which makes ESC and alike possible.

    I have some very good memory trace of seeing such parameter, but I just can't find it so I'm wondering if it was all my memory playing tricks on me or if that is now depreciated and all ABS are 4 channel versions?
     
  4. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Hmm, I've never fooled around with ABS much. Looks like the important parts are in this file: BeamNG.drive\lua\vehicle\wheels.lua

    The function updateBrakeABS() seems to be the one that does the work while setABSBehavior() appears to be used to setup each wheel. All I really see is stuff about whether it uses airspeed or not.

    Is this something you need right now? Since ABS is implemented in Lua a separate ABS function could be implemented inside your vehicle.
     
  5. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,774
    Not quite right now, but as there are so many vehicles possible to create now, I would think it will become something that is needed eventually.

    If there really is no option for it, then it must be my memory is lying to me, again :p

    LUA route would of course then be possibility, I think that 1 channel would be something along lines of if any wheel deviates from fastest wheel or from average too much, then ABS would kick in, would need to research which has been used IRL, average or max.
     
  6. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Well, some of these systems have been overhauled multiple times. As you aid earlier it's possible that your memory is correct but the feature has been removed.

    I don't think that it's an impossible problem, but I am not certain about the best way to implement it. Once you are ready to start on a project which would require this I definitely recommend addressing the question with a dev such as Diamondback or Goosah.
     
    • Agree Agree x 1
  7. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    I would have assumed, that if you do something like the following, it should work? (however... :p)

    Code:
    {"enableABS":true},
    //front wheel stuff
    {"enableABS":false},
    //rear wheel stuff
    On my mods, abs is on the brake objects. The front and rear suspension have separate brakes. My race brakes have no abs, my normal road brakes do. So I was able to test this quite easily.

    upload_2018-7-28_3-54-35.png

    I honestly couldn't tell if this worked. The brakes with no ABS locked up immediately, the brakes with ABS didn't lock up immediately but did after about a second of full braking, this may have been caused by the ABS, this may have been caused by mismatched brakes. But if abs is either on/off for the entire vehicle, I would have expected abs to be on when the rear wheels had it enabled, and off when the rear wheels had it disabled (since rear wheels are declared further down the jbeam file, so they would override what the front ones say). This however did not happen, the ABS was severely gimped regardless of order.

    So my guess is the games ABS lua module wasn't designed with this use case in mind? Hence the ABS doesn't work with only two wheels enabled.

    However, there was a lot of deduction in the above. So perhaps it is possible via another method?


    EDIT:
    Just did another test, removing the front brakes entirely. The ABS functioned on the rear brakes alone correctly.

    EDIT2:

    So I modified the jbeam, so that I could use the normal matching standard brakes, with no ABS on the front brakes. The results were the same when mixing race brakes and normal brakes.

    So yeah, my guess is that it is enabled per wheel, but the lua module just can't handle it when only half of the brakes have it enabled.
     
    #7 aljowen, Jul 28, 2018
    Last edited: Jul 28, 2018
    • Informative Informative x 1
  8. Ai'Torror

    Ai'Torror
    Expand Collapse
    QA, Mod Support, Vehicle Physics
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,572
    There was the arcade option for the ABS if I recall correctly.
     
    • Informative Informative x 1
  9. Michaelflat

    Michaelflat
    Expand Collapse

    Joined:
    Jul 10, 2014
    Messages:
    1,543
    if I can remember rightly, the D series had 2 wheel ABS on the rear wheels, like the aforementioned trucks.
     
  10. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Arcade vs Realistic ABS just determines whether it uses airspeed or wheelspeed - not whether or not it's multi-channel ABS, the question from the OP.

    There definitely seems to be support for enabling or disabling ABS for each wheel, this much is clear from the code. It may not work correctly for one reason or another. Whether it works or not, this doesn't achieve what fufsgfen is asking about.

    The question in the OP was about a special ABS configuration where the brake torque would be adjusted on all wheels together (eg collectively) based on a single wheel locking up.

    The stuff about 2-wheel ABS was in response to mehio's question/statement. Fufsgfen provided the Ford Fiesta XR2i as an example of a vehicle with single channel ABS even though this applied to less than 4 wheels: if either of the rear wheels locked up both of them would have braking reduced to correct this.
     
    • Informative Informative x 1
  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