Author Topic: Control the bike with the inclination of the body  (Read 1177 times)

Level

  • Newbie
  • *
  • Posts: 1
    • View Profile
Control the bike with the inclination of the body
« on: November 12, 2018, 03:18:24 PM »
<a href="https://www.youtube.com/v/WnF3A6AphEo" target="_blank" class="new_win">https://www.youtube.com/v/WnF3A6AphEo</a>

Hi, I had an idea to control the bike with the trackir or free alternative as opentrack, control is very natural and immersive, the tackir to make it work as joystick needs a program called FreePIE http://andersmalmgren.github.io/FreePIE/ ,with a script that I let down and vjoy http://vjoystick.sourceforge.net/site/index.php/download-a-install/download ,have set the direction of the bike and the position of the pilot stand up or shrink.

script:(is not mine, just to change it, only necessary for trackir )
Quote
def update():
        x = filters.mapRange(trackIR.x, -90, 90, -vJoy[0].axisMax, vJoy[0].axisMax)
        y = filters.mapRange(trackIR.y, -90, 90, -vJoy[0].axisMax, vJoy[0].axisMax)
        vJoy[0].rx = x
        vJoy[0].ry = y
if starting:
        trackIR.update += update
first open gpbikes, and then run script.
« Last Edit: November 12, 2018, 03:53:52 PM by Level »