DonkeyCar for Pi-Teleoperation
From Waveshare Wiki
Guide of DonkeyCar
- Setup Raspberry Pi
- Setup Linux PC
- WEB Control
- Calibrate DonkeyCar
- Teleoperation
- Data Collection
- Train Data
- Auto-Driving
- WiKi of PiRacer Pro | WiKi of PiRacer
Teleoperation
- Open file ~/mycar/confgi.py and find the blow part. Check if the CONTROLLER_TYPE is set as Xbox
- Connect the USB adapter of Gamepad to Raspberry Pi
- Open a terminal and run the following commands:
cd ~/mycar python manage.py drive --js
- If you want to enable the gamepad control by default, you can modify the config.py file, set USE_JOYSTICK_AS_DEFAULT to True.
- Note
- Left joystick - Turn left/right
- Right joystick - Speed up (push-up)
- Right joystick - Speed down (pull-down twice)
- It will auto-record the driving data if the throttle is not 0
- Triangle - Speed up
- X - Speed down