Request for 360 thumbstick steering and code.

Discussion in 'Automobilista 2 - General Discussion' started by BighGreenHall, Aug 26, 2023.

  1. BighGreenHall

    BighGreenHall New Member

    Joined:
    Jun 15, 2022
    Messages:
    18
    Likes Received:
    2
    I worked out the code. I'll post it bellow.
    For 360° on left thumbstick steering.
    360 gamepad steering.jpg

    finalised code.jpg
     
    • Like Like x 2
    • Informative Informative x 1
  2. BighGreenHall

    BighGreenHall New Member

    Joined:
    Jun 15, 2022
    Messages:
    18
    Likes Received:
    2
    works with any x, y values for the left thumbstick. And resolves polarity shifts for max values.
    INV on calculator for cos-¹( and multiply first if incorrect paranthesis.
     
    • Informative Informative x 1
  3. BighGreenHall

    BighGreenHall New Member

    Joined:
    Jun 15, 2022
    Messages:
    18
    Likes Received:
    2
    oh and set calculator to DEG and not RAD
     
  4. Jeff Scharpf

    Jeff Scharpf Active Member AMS2 Club Member

    Joined:
    Jan 25, 2020
    Messages:
    262
    Likes Received:
    164
    Sorry I'm not very bright, what is this for? To drive a car with thumbstick? Is it for special needs? Where does this code run? Is it on an Arduino or something like that?
    Pretty cool if you're helping out someone to drive with special needs.
     
    • Like Like x 1
  5. BighGreenHall

    BighGreenHall New Member

    Joined:
    Jun 15, 2022
    Messages:
    18
    Likes Received:
    2
    arduino sounds cool, I was thinking more about software. As most people already have a gamepad with x and y values output on left thumbstick.

    all racing games have 180 degree steering accuracy on the left thumbstick. 90 left and 90 right.
    with this code one can transpose all x and y values of the left thumbstick to allow for 360 degree of steering accuracy. 180 degrees left and 180 degrees right. Utilizing the full rotational capacity of the left thumbstick. (or right thumbstick if one wants to)

    It can be used if someone has special needs. If it helps. Maybe if someone can't use a steering wheel for some reason. Maybe this helps. But I don't know about that. It depends per person. But it is intended for everyone actually, to have 200% steering accuracy on a gamepad or joystick, left thumbstick.

    And it also prevents max steering polarity shifts at max rotations.
     
    Last edited: Sep 27, 2023
  6. BighGreenHall

    BighGreenHall New Member

    Joined:
    Jun 15, 2022
    Messages:
    18
    Likes Received:
    2
    either developers write this in coding language of the game. Or it can be used on a third party software and translated back to x values in any game.

    But I don't know any coding language, so I can't make the third party software. Nor do I know if it is allowed to use such a third party software that enhances the gamepads capabilities for racing games. But it would definitely be nice if someone can make a third party software that integrates these codes into a workable format or executable.

    I know someone who made such a software but it works only on truck simulator. I have no idea how can make it work on automobilista 2, except if someone can make a third party software that includes these functions into an executable gamepad steering enhancer.
     

Share This Page