RetroMelon / Raspberry-Pi-Car

The software used to create a browser-based remote control car with live video and speech synthesis.
MIT License
24 stars 6 forks source link

4 wheel math? #3

Open SteveDevOps opened 7 years ago

SteveDevOps commented 7 years ago

Has anyone done the code/math for 4 wheels? Having the joystick interface on https://github.com/shaunuk/picar would be better.

RetroMelon commented 7 years ago

Hi - sorry, I'm not sure exactly what you're asking, could you explain?

This project was inspired by shaunuk's, however this robot uses a 2 wheel differential drive so the joystick math is quite different to his. For a car with front wheels which can be angled, you could just map the angle of these wheels on to the x axis of the joystick, and the speed of the back motors on to the y axis.