File tree Expand file tree Collapse file tree
TeamCode/src/main/java/org
firstinspires/ftc/teamcode
mrpsvt/capital_robotics/robot_core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- package org .mrpsvt . capital_robotics . auto ;
1+ package org .firstinspires . ftc . teamcode ;
22
33import com .pedropathing .follower .Follower ;
44import com .pedropathing .geometry .BezierLine ;
1414import 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+
Original file line number Diff line number Diff line change 99import 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 ;
You can’t perform that action at this time.
0 commit comments