How to use the setVelocity command

Hi I’ve been messing around with text programing and I cant figure out how to make my motors spin quicker like when your trying to program a puncher and want it to shoot faster

In python, I believe it would be “Motor.set_velocity(90)”. Replace Motor with the actual defined name and 90 with whatever speed. For c++ it is Motor.setVelocity(50, velocityUnits::pct);

You can mess around with it some, for example using volts instead of pct.

Just avoid using setVelocity, combine everything into the spin command.

4 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.