What am I doing wrong? I am trying to change my velocity, but no matter what I set it to, it remains at 100%. I am using a regular 2 motor drivetrain. Thanks!
Try not setting any actions on the controller
I think the controller event command conflicts with the controller configuration. Try to use different controller events on the left or different controller configuration on the right.
So I’m using the drivetrain setup rather than setting up each motor separately, and I want to keep it that way because we have State competition in a few hours. How would I code the left and right turns while adjusting the turn velocity? I removed the controller setup on the right of my pic, and trying to turn either left or right. Basically, what’s the logic I should use to tell the robot to turn right or left? The “when controller axis B is changed” won’t tell me if the B is pushed left or right, so I can’t tell the robot to either “turn left” or “turn right”.
Question, is that code trying to set the velocity of the motors to the positions of the joysticks?
I still recommend to code the wheels separately. It should be faster than figuring out the other way. The speed can be changed by the positions of joystick:
The controls can be made smoother by adding a cubic function:
Yes to your question. My ultimate goal is to reduce turn velocity.
Thats not what I asked. I asked if you are trying to set the velocity to the position of the joysticks. Im not familiar with VEX IQ controler maping so im asking to better understand the image. If you are trying to make a custom driver control I can help with that as I have some good experience in doing so.
If you really need a code this should work you just need to set your drivetrain motors to 2 separate motors in the code. Also the Variables are for whatever the block is for that in VEX IQ I just don’t know what it is because I’ve never done VEX IQ.
did this fix the problem.