Added motors array
This commit is contained in:
@ -15,6 +15,9 @@ import org.firstinspires.ftc.teamcode.MovementLibrary;
|
||||
|
||||
import org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Autonomous(name="Name")
|
||||
public class Name extends LinearOpMode {
|
||||
private DcMotor rightHandWheel;
|
||||
@ -36,7 +39,7 @@ public class Name extends LinearOpMode {
|
||||
distanceSensor = hardwareMap.get(DistanceSensor.class , "distancesensor");
|
||||
colorSensor= hardwareMap.get(ColorSensor.class , "colorsensor");
|
||||
|
||||
|
||||
DcMotor[] motors = {rightHandWheel, leftHandWheel, rightLegWheel, leftLegWheel};
|
||||
|
||||
MovementLibrary.setDirectionForward(rightHandWheel, rightLegWheel, leftHandWheel,leftLegWheel);
|
||||
|
||||
|
Reference in New Issue
Block a user