Slowing velocity as you reach target

We find that using motor.RotateTo/RotateFor with brake type of break in auton causes our robot to jump to the side due to the rapid deceleration as the target is reached. Is it possible to adjust the velocity as the procedure runs and it gets closer to the target? motor.setVelocity indicates it only affect subsequent calls to motor function.

Based on what are you are asking, I suggest making a simple P or PD Loop which will get the robot to a target distance and decelerate as it approaches closer and closer. In this way, autonomous will be a breeze with some conversions as well as being much more precise. If this sounds like something you are looking for and you have a little time on your hands, then just send a reply. In the end, I do not think there is a way to make a robot decelerate with that command.

In RMS’ C++, setVelocity will affect the speed of a currently spinning motor. I’d have to test if VCS behaved the same way, but my go-to assumption would be that it does. (And generally when I say something like this James comes in and tells me I’m not remembering it right.)

use the difference between your position and the objects position and feed that number (multiplied by something) into the drive. If the difference is negative it will go the opposite direction