Skip to content

Commit

Permalink
Reorganize file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
BenG49 committed Dec 8, 2023
1 parent b4133c3 commit db16630
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/stuypulse/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.stuypulse.robot.commands.swerve.SwerveDriveDrive;
import com.stuypulse.robot.commands.swerve.SwerveDriveResetHeading;
import com.stuypulse.robot.constants.Ports;
import com.stuypulse.robot.subsystems.swerve.Odometry;
import com.stuypulse.robot.subsystems.odometry.Odometry;
import com.stuypulse.robot.subsystems.swerve.SwerveDrive;
import com.stuypulse.robot.util.BootlegXbox;
import com.stuypulse.stuylib.input.Gamepad;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import com.pathplanner.lib.PathConstraints;
import com.pathplanner.lib.PathPlanner;
import com.stuypulse.robot.subsystems.swerve.SwerveDriveFollowTrajectory;
import com.stuypulse.robot.util.SwerveDriveFollowTrajectory;

public class DriveAndTurnBump extends SequentialCommandGroup {
private static final PathConstraints CONSTRAINTS = new PathConstraints(2, 2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import com.pathplanner.lib.PathPlanner;
import com.pathplanner.lib.PathPlannerTrajectory;
import com.pathplanner.lib.PathPoint;
import com.stuypulse.robot.subsystems.swerve.SwerveDriveFollowTrajectory;
import com.stuypulse.robot.util.SwerveDriveFollowTrajectory;

public class EightFootAuton extends SequentialCommandGroup {
private static final PathConstraints CONSTRAINTS = new PathConstraints(0.01, 0.01);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import com.pathplanner.lib.PathConstraints;
import com.pathplanner.lib.PathPlanner;
import com.stuypulse.robot.subsystems.swerve.SwerveDriveFollowTrajectory;
import com.stuypulse.robot.util.SwerveDriveFollowTrajectory;

public class Mobility extends SequentialCommandGroup {
private static final PathConstraints CONSTRAINTS = new PathConstraints(2, 2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import com.pathplanner.lib.PathConstraints;
import com.pathplanner.lib.PathPlanner;
import com.stuypulse.robot.subsystems.swerve.SwerveDriveFollowTrajectory;
import com.stuypulse.robot.util.SwerveDriveFollowTrajectory;

public class MobilityBump extends SequentialCommandGroup {
private static final PathConstraints CONSTRAINTS = new PathConstraints(2, 2);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.stuypulse.robot.commands.swerve;

import com.stuypulse.robot.subsystems.swerve.Odometry;
import com.stuypulse.robot.subsystems.odometry.Odometry;

import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stuypulse.robot.subsystems.swerve;
package com.stuypulse.robot.subsystems.odometry;

import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package com.stuypulse.robot.subsystems.swerve;
package com.stuypulse.robot.subsystems.odometry;

import com.stuypulse.robot.subsystems.swerve.SwerveDrive;

import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.kinematics.SwerveDriveOdometry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
import com.stuypulse.robot.constants.Settings.Swerve.BackRight;
import com.stuypulse.robot.constants.Settings.Swerve.FrontLeft;
import com.stuypulse.robot.constants.Settings.Swerve.FrontRight;
import com.stuypulse.robot.subsystems.odometry.Odometry;
import com.stuypulse.robot.subsystems.swerve.module.SimModule;
import com.stuypulse.robot.subsystems.swerve.module.SwerveModule;
import com.stuypulse.robot.subsystems.swerve.module.SwerveModuleImpl;
import com.stuypulse.stuylib.math.Vector2D;

import edu.wpi.first.math.geometry.Pose2d;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stuypulse.robot.subsystems.swerve;
package com.stuypulse.robot.subsystems.swerve.module;

import com.stuypulse.robot.Robot;
import com.stuypulse.robot.constants.Settings;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stuypulse.robot.subsystems.swerve;
package com.stuypulse.robot.subsystems.swerve.module;
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.math.kinematics.SwerveModulePosition;
import edu.wpi.first.math.kinematics.SwerveModuleState;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.stuypulse.robot.subsystems.swerve;
package com.stuypulse.robot.subsystems.swerve.module;

import com.ctre.phoenix.sensors.CANCoder;
import com.revrobotics.CANSparkMax;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* This work is licensed under the terms of the MIT license. */
/**************************************************************/

package com.stuypulse.robot.subsystems.swerve;
package com.stuypulse.robot.util;

import com.stuypulse.robot.constants.Settings.Swerve.Motion;
import com.stuypulse.robot.subsystems.swerve.Odometry;
import com.stuypulse.robot.subsystems.odometry.Odometry;
import com.stuypulse.robot.subsystems.swerve.SwerveDrive;

import edu.wpi.first.math.controller.PIDController;
Expand Down

0 comments on commit db16630

Please sign in to comment.