Check the YouTube Video: https://youtu.be/ZFiBm52qkF8
- Python 3.9+
- pygame
When using a joystick or keyboard (bang bang control), you can use the pygame version of the code. pygame can also read the Logitech G27 steering wheel as shown in the video.
When using pygame, joystick can capture the wheel information from the pygame joystick class using the generic windows HID game controller driver. But this does not give access to torque feedback contrrol.
Needs windows OS to use the Doyle lab G27 steering wheel, it is essential to install an older version 5.10 of Logitech Game software
https://support.logi.com/hc/en-hk/articles/360024699674--Downloads-G27-Racing-Wheel
On Windows 11 you must turn off data integriry core protection to use this driver.
Just run mountain_biking:
python mountain_biking.py
The "Get ready to start" sound and the music are played with the game.
The script experiment_mtb.py runs the game repeatedly as subprocess and shows the subject what they need to do with slides.
python experiment_mtb.py
$ lsl_relay into eeg_awasome
channel 0