Hill Descent Controll

Discussion in 'Ideas and Suggestions' started by mcheijink, Sep 16, 2017.

  1. mcheijink

    mcheijink
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    23
    Hi,

    With all my rock crawling adventures i sometimes wished for a feature that would enable me to concentrate solely on steering. So reworked the Cruise Controll system to also apply the brakes when necessary and thus allow the car to maintain speed downhill.

    It now looks something like this, notice that the airspeed is higher, but that's due to overstepping the tire grip levels on this hill. The tires are still turning at the correct speed though.


    Devs, could you implement this feature in the game? I have my edit attached to this post. CCGraph is the UI app that is generating the PID data in the top left of the video. cruiseControlmch.lua is your CC code with my edits. At least, a few versions back (2-3 updates back?). My code is purely a proof of concept and thus not optimised.

    I changed the Integral part to enable it to drop below zero. When the integral is negative it will make the brakefactor positive.

    I really hope this feature can get implemented.

    Marco
    --- Post updated ---
    BTW, i also tried some PID tuning, and in the video I am using the derivative. But later on i realised that this will create a lot of instabilities in the drive train (shocks and vibrations) so i removed that factor. I now understand why you guys only used the PI factors ;-)
     

    Attached Files:

    • Like Like x 1
  2. F&FFan750

    F&FFan750
    Expand Collapse

    Joined:
    Nov 26, 2016
    Messages:
    15
    Is there any way you can update this to work in 0.18.4? I tried installing the file in place of the original cruiseControl.lua (and yes I removed mch from the name) and it immediately gives me "error in vehicle/object. please review installation" or something like that when I spawn in. I do agree this is something that NEEDS to be added.
     
  3. mcheijink

    mcheijink
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    23
    Hi F&FFan,
    I started playing with it again.
    As of this version (0.19.4.1.10239), the attached lua file will work...
     

    Attached Files:

    #3 mcheijink, Jun 10, 2020
    Last edited: Jun 10, 2020
    • Like Like x 1
  4. OAK Petrolhead

    OAK Petrolhead
    Expand Collapse

    Joined:
    Sep 10, 2017
    Messages:
    20
    Wow you're awesome!! I finally found someone doing this.
     
  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