We are using the sample claw bot controller program which uses a standard tank drive in which the velocity is set by the joystick positions A and D. It appears everything was working ok, but when we have joysticks at max position/velocity the speed seems slower than the speed observed when running an autonomous code with velocity set to 100%. The speed when using the controller appears to be about 20% less than the speed observed when running code only.
I canât remember where I saw it now, but I thought the motors defaulted to a setting that was less than 100%. If you want the drive motors to be capable of 100% speed, I believe you have to use the âset motor to velocityâ block
the sample clawbot code includes some weird axis value divided by 2 for some reason, which would explain why it wouldnât be going as fast as during a properly created autonomous. Just remove the â/2â at the end of the motor controlling line and youâre good to go.
From the STEM Labs âŚ
"VEX IQ Smart Motors can be programmed to spin or drive at many different velocities. If you have programmed your robot to drive or turn before, you probably did it with the default velocity. The default velocity is the velocity that the Smart Motors turn at automatically - if you donât add any type of block for setting the velocity. The default velocity is 50% of the maximum velocity. The maximum velocity is 100%. " STEM Lab Changing Velocity
So how then do you override that setting using the blocks for the controller? Would a âset velocityâ block be overturned by the controller A and D position = velocity blocks?
Have you tried what I suggested regarding printing your controller values to screen so you can be sure you are sending the value you think you are sending to the motors?