Tiny thing to push
Former-commit-id: b9943f29ab02bf4fdcbc77205a600fb874b9c26d
This commit is contained in:
parent
dcd8fd948b
commit
92512c3476
|
@ -1,5 +1,7 @@
|
||||||
package org.firstinspires.ftc.teamcode.createdcode.driveobjs;
|
package org.firstinspires.ftc.teamcode.createdcode.driveobjs;
|
||||||
|
|
||||||
|
import com.acmerobotics.roadrunner.geometry.Pose2d;
|
||||||
|
|
||||||
public class ActionObject {
|
public class ActionObject {
|
||||||
private double x, y;
|
private double x, y;
|
||||||
private double angle;
|
private double angle;
|
||||||
|
@ -15,7 +17,10 @@ public class ActionObject {
|
||||||
this.y = y;
|
this.y = y;
|
||||||
this.angle = angle;
|
this.angle = angle;
|
||||||
this.methodToCall = methodToCall;
|
this.methodToCall = methodToCall;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Pose2d getPose2d(){
|
||||||
|
return new Pose2d(x, y, Math.toRadians(angle));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,8 @@ public class EnhancedDriver extends SampleMecanumDrive{
|
||||||
armOne = hardwareMap.get(DcMotor.class, "armOne");
|
armOne = hardwareMap.get(DcMotor.class, "armOne");
|
||||||
armTwo = hardwareMap.get(DcMotor.class, "armTwo");
|
armTwo = hardwareMap.get(DcMotor.class, "armTwo");
|
||||||
}
|
}
|
||||||
public void runLocations();
|
public void runLocations(ActionObject){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue