I am trying to code a six motor drive. I have my chasis set to where the Front Left is forward, Middle Left motor is reversed, Back Left is forward. Front Right is Reverse, Middle Right is Forward and Back Right is Reversed.
I am trying to program for arcade. With this code below, when using the right stick (Port 1) it turns 360 as planned in the correct direction; however when I push forward / back on Port 3, it also still just spins … can anyone help me with this code?
Arcade control is usually set to controller 3 position + controller 1 position for the left motors and controller 3 position - controller 1 position for the right motors. The reason your robot only spins is because you set every motor to have the same code, so doing anything will result in all the motors doing the same thing, but the left and right side motors should have different code.
It looks like you were trying to curve the values from the joysticks to make controlling the drivetrain easier, but the above code won’t work for various reasons. This thread explains how you can do it: Making joysticks less sensitive using exponential functions.