• Welcome to PiBoSo Official Forum. Please login or sign up.

Control the bike with the inclination of the body

Started by Level, November 12, 2018, 03:18:24 pm

Previous topic - Next topic



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 )
Quotedef 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.