Tiny thing to push

Former-commit-id: b9943f29ab02bf4fdcbc77205a600fb874b9c26d
This commit is contained in:
nn2wg 2022-01-31 19:57:47 -06:00
parent dcd8fd948b
commit 92512c3476
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,7 @@
package org.firstinspires.ftc.teamcode.createdcode.driveobjs;
import com.acmerobotics.roadrunner.geometry.Pose2d;
public class ActionObject {
private double x, y;
private double angle;
@ -15,7 +17,10 @@ public class ActionObject {
this.y = y;
this.angle = angle;
this.methodToCall = methodToCall;
}
public Pose2d getPose2d(){
return new Pose2d(x, y, Math.toRadians(angle));
}
}

View file

@ -28,6 +28,8 @@ public class EnhancedDriver extends SampleMecanumDrive{
armOne = hardwareMap.get(DcMotor.class, "armOne");
armTwo = hardwareMap.get(DcMotor.class, "armTwo");
}
public void runLocations();
public void runLocations(ActionObject){
}
}