Hey, I don’t know if this is the right place or not, but I’m trying to figure out how to make two motors go to one joystick. Ch3, and Ch2.
We have 4 wheels, originally only the back 2 wheels had a motor. We added motors to the front two wheel also, and I can’t figure out how to make both right wheels go to the right joystick, and both left wheel go to the left joystick.
It sounds like you are describing a 4 motor tank drive, the code for that would perhaps look like this.
#pragma config(Motor, port2, leftF, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port3, leftB, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, rightF, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port5, rightB, tmotorVex393_MC29, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main()
{
while(1) {
// motors for left side
motor leftF ] = vexRT Ch3 ];
motor leftB ] = vexRT Ch3 ];
// motors for right side
motor rightF ] = vexRT Ch2 ];
motor rightB ] = vexRT Ch2 ];
wait1Msec(20);
}
}