diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Robot.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Robot.java index ae78075..3fdec5c 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Robot.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Robot.java @@ -1,14 +1,34 @@ package org.firstinspires.ftc.teamcode.utils; +import com.qualcomm.robotcore.hardware.DcMotorEx; +import com.qualcomm.robotcore.hardware.DcMotorImplEx; import com.qualcomm.robotcore.hardware.HardwareMap; public class Robot { //Initialize Public Components + public DcMotorEx frontLeft; + public DcMotorEx frontRight; + + public DcMotorEx backLeft; + + public DcMotorEx backRight; + + + + public Robot (HardwareMap hardwareMap) { //Define components w/ hardware map + frontLeft = hardwareMap.get(DcMotorEx.class, "fl"); + frontRight = hardwareMap.get(DcMotorEx.class, "fr"); + backLeft = hardwareMap.get(DcMotorEx.class, "bl"); + backRight = hardwareMap.get(DcMotorEx.class, "br"); + + + + } }