6 Motor Drive in python

So I am part of a new team and I am trying to create a 6 motor drive train for our new bot but every time I configure it in the VEXcode V5 site it gets rid of the other two motors after I configure something else like pneumatics it set it back to a four motor which I started it as but configured it to a 6 motor. I don’t know if its the site or if I’m doing something wrong so I’m coming here for recommendations on what to do.

An unfortunate part of vexcodev5 is that after you create a six-motor drive, any attempt to add anything else will reset the entire robot config. You can add everything you need first, then create the six-motor drive. You can add things manually if you need to later.

1 Like

For python you can use the code generated for a 4 motor drivetrain for control and just modify the motor groups for 3 motors. essentially create your own motor variables and put 3 of them into a motor group as that is supported in c++ and python. the drivetrain code generated by vexv5 works via motor groups so no new logic is needed. This is what I personally use for my bot.
left_motor_a = Motor(Ports.PORT11, GearSetting.RATIO_18_1, False) left_motor_b = Motor(Ports.PORT10, GearSetting.RATIO_18_1, False) left_motor_c = Motor(Ports.PORT10, GearSetting.RATIO_18_1, False) left_drive = MotorGroup(left_motor_a, left_motor_b, left_motor_c)
Code above is legal.

1 Like

So if I’m stacking motors I would reverse motor c?

yes. I forgot about that.