How do I change the velocity of individual motors in a motor group V5 Blocks

I’m using a motor group for my conveyor and intake motor and for part of my skills auton I need to change the velocity of just my conveyor motor and not my intake but because I’m using a motor group it will only let me change the velocity of the entire motor group. What do I do and is there a way I can change only one motor without affecting it for everything else as I also need to put its velocity back to normal for scoring. Also I’m currently at the skills competition I’m coding for so please respond as fast as you can as this might be my last chance to get to states.

Don’t use a motor group, code direct activity on your own?

And watch me deflect the “please respond as fast as you can as this might be my last chance to get to states.” back to you because nothing was stopping you from writing your post three weeks ago.

2 Likes

So theoretically (test before using the code)

Make a copy of your project. In the copy, convert to a Python project. At the start of the project, it should say something like “#region VEXcode Generated Robot Configuration”. Press the plus sign to the left of it. In the revealed text, find something that says MotorGroup or something like that, along with the name of your motor group for the conveyor and intake together. In the parentheses to the right of it, it should list two motors. Identify which is the conveyor motor and which is the intake motor. Then, control the motors in your blocks code (or maybe another copy of your original code) with Switch blocks, which use Python code.

Explore VEXcode V5 API Reference Guide - Learn Coding in Blocks, Python & C++ — VEXcode Documentation

You might need to try using the names of the motors in the C++ code

Just don’t use a motor group if you need to individually change velocity. You could keep the motor group, but just make individual motors for this purpose.