Robot C teleop speed


#1

I am writing a simple teleop code in Robot C Graphical. I am using tank control. The robot is moving slower when we use the teleop mode. Is there a simple way to increase the speed using the tank mode.


#2

Can you post your code?


#3

Are you changing the joystick scale?


#4

This is what they have so far. They want to increase the driving speed and the arm is jerky even with the speed reduced to 50

ab10612cf17a34ea1b1342e2e6d1fe60.jpg


#5

I don’t know what it means to increase the joystick scale they have it at 1 I think.


#6

The problem is is that it keeps going through the arm control. You need to have a wait in the if do that doesn’t return to the rest of the code until they’re done moving. Make the program wait until the button is released.


#7

Where do I need the wait after the tank control or arm control or in the if statements? Thank you!


#8

After you set multiple motors make it wait until the button isnt pressed anymore. So you’re going to wait until the button equals 0


#9

@mseward The issue that you have is that the two sets of commands are fighting against each other. In graphical, the only way I can think to achieve what you want is to nest a whole load of If/Else statements like the attached, There must be an easier way, but I can’t think what it is!
Anyway, the attached will get you out of a hole.

013f84660ebcaaa2ff97517c58fe79d4.jpg