Can I slow down my motors without coding?

Hi! I am trying to slow down my group’s motors, we got into an argument about if I could code it or not. We have two weeks 'till the next tournament we are in. We meet once a week… Help?

-Starry Teh Cat

Sorry if this seems dumb, but I keep getting into arguments about this because I am the only person who knows how to work the brain… Thanks for helping if you can!

-Starry Teh Cat (Call me Starry!)

1 Like

Welcome to the forums!

Yes. You can most definitely solve this problem in code. Something like motorGroup.set_velocity(vel) where motorGroup is the name of your motor group and vel is the velocity you want it to be. I hope this helps!

P.S. you don’t need to sign your posts. I can see your username.

2 Likes

Thanks! I just signed it because people don’t call me Starry and it’s a reflex, haha!

2 Likes

Hello Starry!

For Block Code

I found this article on it (scroll down a bit)
https://kb.vex.com/hc/en-us/articles/14216995018132-Custom-Controller-Code-in-VEXcode-IQ
There is a block for it

If you’re talking about C++, the command is:
motorGroup.setVelocity(x, percent);

where x is the percentage you want.

Thanks! Also, we need it to slow down during driver control. The motor on our arm is snapping up and making it fall forward. Any idea how to fix this? Thanks!

1 Like

You can use a “when driver control block” and put a set drive velocity block under it.
As for your lift, that is both a power and center of gravity issue. Use some rubber bands to help pull the lift up and move some weight around on your robot.

2 Likes

Don’t be afraid to test things out. You don’t need to use your main file, just creat it, test it, and add it to your main code if it works.
Hope it works!

------- BananaPi, 71911E Captian

Thanks!! This is great and will stop any further arguments!

1 Like

This appears to be a VEX IQ question rather than a V5 one. There is no field control in IQ so you will only have the When Started hat.

1 Like

I highly recommend coding it so the velocity is lower. However, you could also increase the gear ratio. For example, if the ratio is currently 1:1 you could try reducing the speed by making it 1:4, 1:8, etc.

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