WIP Beta released ETK Auto-Stop

Discussion in 'Configurations' started by Arcanox, Sep 4, 2018.

Tags:
  1. Arcanox

    Arcanox
    Expand Collapse

    Joined:
    Aug 22, 2018
    Messages:
    169
    I noticed that the tachometer on the ETK vehicles includes the auto-stop indicator found on another certain three-lettered German car company's cars. I decided to try and implement the actual technology behind this in BeamNG. A demo can be seen here:



    It follows basically the same restrictions as most real-life cars with auto-stop: the engine must be warmed up, the gear shifter must be in Drive, the vehicle must be completely stopped, and the driver's foot must be sufficiently on the brake (30%). The engine will restart when any of these criteria are broken or if it has been auto-stopped for over a minute.

    I've included an ECU part for both the I4 and I6 ETK engines:



    It can theoretically be adapted to any engine in the game if given the correct JBeam parameters. To add it to another ECU, copy the ECU jbeam definition and add this:

    Code:
    "controller": [
        ["fileName"],
        ["autoStop"]
    ],
    "autoStop": {
        // "autoStopMaxTime": 60,
        // "brakeThreshold": 0.15,
        // "startingIgnitionCoef": 0.2,
    }
    
    To change the parameters, just comment out one of the lines under autoStop and change its value. The defaults work for both ETK engines, but they may need adjustment for other vehicles.
    • autoStopMaxTime: The maximum amount of time in seconds the engine can remain stopped. Default: 60 seconds.
    • brakeThreshold: The amount of brake force (0 to 1) that must be applied to trigger and maintain auto-stop. Default: 0.15 (15%).
    • startingIgnitionCoef: The percentage of max ignition coefficient to use when restarting the vehicle. This is normally "1" when starting a vehicle with the keyboard shortcut. Reducing it keeps the engine from reving way up upon restart (which would cause lurching when starting the engine in gear). Default: 0.2.
    To install the auto-stop feature, either drop the archive into Documents\BeamNG.drive\mods\repo or extract it into a folder in Documents\BeamNG.drive\mods\unpacked
     

    Attached Files:

    • Like Like x 16
  2. MilanKD

    MilanKD
    Expand Collapse

    Joined:
    Jul 23, 2016
    Messages:
    967
    Very nice job.
     
  3. ClassicMike

    ClassicMike
    Expand Collapse

    Joined:
    Jul 24, 2017
    Messages:
    174
    Works great!
     
  4. KaiserimnopYT

    KaiserimnopYT
    Expand Collapse

    Joined:
    Oct 9, 2016
    Messages:
    4,022
    Great job
     
  5. Slammington

    Slammington
    Expand Collapse

    Joined:
    Aug 14, 2014
    Messages:
    1,610
    This looks awesome! I won't be surprised if the devs end up implementing something like this into the game :)
     
    • Like Like x 1
  6. Dirtbikr98

    Dirtbikr98
    Expand Collapse

    Joined:
    Mar 8, 2013
    Messages:
    68
    Very cool
     
  7. Kueso

    Kueso
    Expand Collapse

    Joined:
    Oct 14, 2016
    Messages:
    3,501
    for a second i though this was that system where the car will detect an object infront of it and if you are going to hit it the car will stop for you
    Collision warning system... I guess?
    But either way this is very cool and I approve 100%
     
    • Like Like x 1
    • Agree Agree x 1
  8. Arcanox

    Arcanox
    Expand Collapse

    Joined:
    Aug 22, 2018
    Messages:
    169
    I've usually heard that called "automatic forward braking" by car manufactureres; that'd be a neat feature too! I'm not sure how easy it'd be to do in BeamNG at this point in time, but it does have a pretty advanced AI system so maybe one could hook into some of the code for that and implement "auto forward braking" too...it'd be a neat challenge!
     
    • Agree Agree x 3
  9. Kueso

    Kueso
    Expand Collapse

    Joined:
    Oct 14, 2016
    Messages:
    3,501
    i think it would be a great addition to newer cars too.
     
    • Agree Agree x 1
  10. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    7,054
    Do you know of this side of BeamNG?
    https://beamng.gmbh/research/

    There mentioning about Radar that is WIP, not sure if that will ever make it to BeamNG.Drive side, but you might find that other side interesting too and maybe you can find some ideas from it to try on .drive.
     
  11. carsmin

    carsmin
    Expand Collapse

    Joined:
    Jan 7, 2018
    Messages:
    1,672
    noice!
     
  12. SanderCarGuy

    SanderCarGuy
    Expand Collapse

    Joined:
    Dec 2, 2016
    Messages:
    640
  13. SubaruSTI07™

    SubaruSTI07™
    Expand Collapse

    Joined:
    Sep 26, 2017
    Messages:
    3,701
    I saw this thread and thought the title said ETK Auto-Shop LMAO
     
    • Agree Agree x 6
  14. ItsTheLittleAcura!

    ItsTheLittleAcura!
    Expand Collapse

    Joined:
    Feb 9, 2018
    Messages:
    90
    Thanks! This will help with my Acura TLX mod!
     
  15. ast5515

    ast5515
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    229
    Fancy stuff!
     
  16. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    764
    Noice! well you know that certain six-lettered Japenese car company's cars also have auto-stop.
     
  17. Arcanox

    Arcanox
    Expand Collapse

    Joined:
    Aug 22, 2018
    Messages:
    169
    Starts with a "T" and ends with an "A"? ;)

    If so, I did know that, actually because I was next to a 2018 model at a light one day and noticed it.
     
  18. JakeTheMan

    JakeTheMan
    Expand Collapse

    Joined:
    Jan 13, 2018
    Messages:
    19
    I don't understand, how can I add this to other vehicles in the game?
     
    • Agree Agree x 1
  19. SuperShep1

    SuperShep1
    Expand Collapse

    Joined:
    Apr 14, 2019
    Messages:
    337
    i thought it said shop also
     
  20. Slimeboy2015

    Slimeboy2015
    Expand Collapse

    Joined:
    Jan 10, 2018
    Messages:
    472
    dammit i thought this was a auto stop as in emergency crash stop. :p
     
    • Like Like x 2
    • Agree Agree 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