Robot Drive Programming

#1

Our robot has a normal arcade drive that’s controlled with a single joystick. We coded it in Java btw. We cant turn while moving and when we try to stop the robot after it’s been moving at high speeds it tops over because the wheels just straight up stop moving. Is there there program to make the robot drive smoother?

#2

Can you share your current drive code? Hard to diagnose the problem without it

1 Like
#3

What kind of motor controller are you using? The code may be set for your controllers to be in brake mode, which is what’s causing the stopping. About the steering, are the motors trying to turn or not?

#4

We’ll need to see the code.

#5

For the record, this is a very bad control scheme and I recommend abandoning it. Put your turning and forward/backwards motion on separate joysticks.

1 Like
#6

That’s an unnecessarily strong statement IMO. It may not be the control scheme that you or your drivers prefer, but that’s not to say that it’s “a very bad control scheme.” The best control scheme is the one that your driver feels the most comfortable with. If for this driver that’s a single joystick, then they should stick with it.

To the OP, I agree that we really need to see your code to be able to help.

3 Likes
#7

Definitely not true. Our team has used this with great success. Our driving is quite good. Our bot not so much, but single joystick works very well.

1 Like
#8

Now that people are talking about joysticks, is the one you’re using more than 1 axis?

1 Like