Skip to content

Commit 2e061bf

Browse files
committed
move for adio
1 parent b9e7ea0 commit 2e061bf

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

TeamCode/src/main/java/org/mrpsvt/capital_robotics/auto/scrimmageMoveForward.java renamed to TeamCode/src/main/java/org/firstinspires/ftc/teamcode/move.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.mrpsvt.capital_robotics.auto;
1+
package org.firstinspires.ftc.teamcode;
22

33
import com.pedropathing.follower.Follower;
44
import com.pedropathing.geometry.BezierLine;
@@ -14,7 +14,7 @@
1414
import org.mrpsvt.capital_robotics.robot_core.DriveBase;
1515

1616
@Autonomous
17-
public abstract class scrimmageMoveForward extends CommandOpMode
17+
public abstract class move extends CommandOpMode
1818
{
1919
private Follower followerElement;
2020
private PathChain pathElement;
@@ -44,14 +44,11 @@ public void initialize()
4444
compilePathChain();
4545

4646
SequentialCommandGroup order = new SequentialCommandGroup
47-
(
48-
new FollowPathCommand(followerElement, pathElement).setGlobalMaxPower(0.5)
49-
);
50-
}
47+
(
48+
new FollowPathCommand(followerElement, pathElement).setGlobalMaxPower(0.5)
49+
);
5150

52-
@Override
53-
public void run()
54-
{
5551
super.run();
5652
}
5753
}
54+

TeamCode/src/main/java/org/mrpsvt/capital_robotics/robot_core/DriveBase.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import com.seattlesolvers.solverslib.hardware.motors.Motor;
1010

1111

12-
public class DriveBase {
12+
public class DriveBase
13+
{
1314
static HardwareMap hardwareMap;
1415
Motor frontLeft;
1516
Motor frontRight;
@@ -19,12 +20,14 @@ public class DriveBase {
1920
public MecanumDrive mecanum;
2021
public RevIMU imu;
2122

22-
public DriveBase(HardwareMap hardwareMap) {
23+
public DriveBase(HardwareMap hardwareMap)
24+
{
2325
this.hardwareMap = hardwareMap;
2426
this.mecanum = initDriveBase();
2527
}
2628

27-
public MecanumDrive initDriveBase() {
29+
public MecanumDrive initDriveBase()
30+
{
2831
DriveConstants constants = new DriveConstants();
2932
frontLeft = new Motor(hardwareMap, constants.frontLeftMotorName);
3033
frontRight = new Motor(hardwareMap, constants.frontRightMotorName);
@@ -35,12 +38,14 @@ public MecanumDrive initDriveBase() {
3538
return mecanum;
3639
}
3740

38-
public RevIMU initIMU() {
41+
public RevIMU initIMU()
42+
{
3943
RevIMU imu = new RevIMU(hardwareMap);
4044
imu.init();
4145
return imu;
4246
}
4347

48+
//this was created for the scrimageMoveForeward file
4449
public static HardwareMap getHardwareMap()
4550
{
4651
return hardwareMap;

0 commit comments

Comments
 (0)