Skip to content

Commit

Permalink
delete extra poseManager stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinEC2 committed Sep 21, 2024
1 parent fb22926 commit b2384ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import frc.robot.util.Alert.AlertType;
import frc.robot.util.loggedShuffleboardClasses.LoggedShuffleboardChooser;


/**
* This class is where the bulk of the robot should be declared. Since Command-based is a
* "declarative" paradigm, very little robot logic should actually be handled in the {@link Robot}
Expand All @@ -48,7 +47,8 @@ public RobotContainer() {

// Set up auto routines

autoChooser = new LoggedShuffleboardChooser<>("Auto Choices", "Driver", AutoBuilder.buildAutoChooser());
autoChooser =
new LoggedShuffleboardChooser<>("Auto Choices", "Driver", AutoBuilder.buildAutoChooser());

// Configure the button bindings
configureButtonBindings();
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/subsystems/drive/DriveConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ public final class DriveConstants {
public static final int leftMotorID = 0;

// TODO: FAKE change trackwidth later
public static final DifferentialDriveKinematics kinematics = new DifferentialDriveKinematics(0.508);
public static final DifferentialDriveKinematics kinematics =
new DifferentialDriveKinematics(0.508);
}
9 changes: 1 addition & 8 deletions src/main/java/frc/robot/util/PoseManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,13 @@
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.math.geometry.Translation3d;
import edu.wpi.first.math.geometry.Twist2d;
import edu.wpi.first.math.kinematics.SwerveModulePosition;
import edu.wpi.first.math.numbers.N1;
import edu.wpi.first.math.numbers.N3;
import frc.robot.subsystems.drive.DriveConstants;
import org.littletonrobotics.junction.AutoLogOutput;

public class PoseManager {
private SwerveModulePosition[] lastModulePositions = // For reseting pose
new SwerveModulePosition[] {
new SwerveModulePosition(),
new SwerveModulePosition(),
new SwerveModulePosition(),
new SwerveModulePosition()
};

private Rotation2d lastGyroAngle = new Rotation2d();
private Twist2d robotVelocity = new Twist2d();
private double lastYawVelocity = 0.0;
Expand Down

0 comments on commit b2384ff

Please sign in to comment.