on your pi
wget https://raw.githubusercontent.com/tawnkramer/donkey/dev-mainline/donkeycar/parts/controllers/joystick.py
cp joystick.py ~/d2/
now edit ~/d2/manage.py
near the top, add a
import joystick
then comment out the local web controller, and add the line:
ctr = joystick.JoystickPilot(max_throttle=0.3)
#ctr = dk.parts.LocalWebController()
if this is too sensitive, try making max_throttle smaller. like 0.2 or 0.1
Update: The joystick part is integrated into donkey mainline now. No need to do this. Check docs for setup. https://github.com/wroscoe/donkey/tree/master/docs
on the standard donkey platform, 30% was a bit too fast for me so I tried 20% but it was too slow and even stopped on a bump. 25% was juuuuust right.