Help in vex code!

How can I enter a specific speed in the joystick programming.!
IMG_20210218_090536|375x500


I leave my programming to see if you can help me put specific speeds to the joystick

You would just set the joystick percent on an axis as your velocity. For example:

Motor.spin(fwd, Controller1.Axis3.position(percent), percent);
4 Likes

You’ve posted this in the VEXcode VR topic. VEXcode VR does not have a joystick. Which platform are you using, VEX IQ or VEX V5?

And as it could be done in my friend programming, I do not want to remove the dead band

Then have the controller1.axis3.position percent equal to the leftmotor speed variable.

1 Like

For example I want to enter the speed of 128 percent, so would it look or is it the other way around friend?
Motor.spin(fwd, Controller1.Axis3.position(128), percent)

If you want to manually enter a speed of 128 (like in the program), then you would just need to set the velocity to 128.

1 Like

Then it would look like this

Motor.spin (fwd, Controller1.Axis3.position (128), percent);

Or so it would be

Motor.spin (fwd, Controller1.Axis3.position (percent), 128);

If you wanted to do that, just do something like motor.spim(fwd, 128, percent);

1 Like