2 Commits

Author SHA1 Message Date
9d71ef670c Merge remote-tracking branch 'origin/Branch-Yixuan' into Branch-Yixuan 2024-04-19 21:40:35 -07:00
a9ebe79e01 Added motors array 2024-04-19 21:40:22 -07:00

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