Code: task main() {
nSyncedMotors = synchBC; //motor B is the master, motor C is the slave nSyncedTurnRatio = 100; //motors move at 100% alignment to each other
motor[motorB] = 30; //turn motor B on, which controls motor C at 30% power wait1Msec(2000); // wait for two seconds
motor[motorB] = 0; // turn the motors off.
} |