Added motors array

This commit is contained in:
2024-04-19 21:40:22 -07:00
parent d77067538a
commit a9ebe79e01

View File

@ -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);