First year using a Xbox/PlayStation controller

we are looking for simple code just to make the bot drive if anyone has some they could send it would be a blessing

Just joystick code? What kind of drive train? How do the axis of the joystick map to the robots motors?

We need some more detail I think.

The above link is a good start but it won’t be specific to your exact setup. You will need to customize it accordingly

Too many unknowns as @kingc95 mentioned.

  1. What type of drivetrain are you using? 4/6/etc wheel differential (i.e. tank), swerve, mecanum, etc
  2. If differential. do you want arcade or tank steering?
  3. What controller are you using? Xbox? Ps4? 5? Logitech?
  4. What programming language?

In any case, the official docs (linked above) are a great place to start. I’d also highly recommend looking through the example projects (link for java but C++ and python exist too). You can create projects directly through vscode if looking through all the source here isn’t easy for you.

2 Likes