Code: task main() {
nSyncedMotors = synchBC; //motor B is the master, motor C is the slave nSyncedTurnRatio = -100; //motors move in opposite directions of each other
motor[motorB] = 30; //turn motor B on, which controls motor C at 30% power wait1Msec(500); // wait for one half second
motor[motorB] = 0; // turn the motors off.
}
|