Skip to content

Commit

Permalink
Revert "Swerve simple trajectory update (#485)"
Browse files Browse the repository at this point in the history
This reverts commit 8ae3bcb.
  • Loading branch information
Rongrrz committed Jan 18, 2025
1 parent c599c33 commit 68cb567
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 694 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import edu.wpi.first.math.geometry.Twist2d;
import xbot.common.command.BaseCommand;
import xbot.common.logging.RobotAssertionManager;
import xbot.common.math.XYPair;
import xbot.common.properties.PropertyFactory;
import xbot.common.subsystems.drive.control_logic.HeadingModule;
Expand All @@ -25,14 +24,14 @@ public class SwerveSimpleTrajectoryCommand extends BaseCommand {

@Inject
public SwerveSimpleTrajectoryCommand(BaseSwerveDriveSubsystem drive, BasePoseSubsystem pose, PropertyFactory pf,
HeadingModuleFactory headingModuleFactory, RobotAssertionManager assertionManager) {
HeadingModuleFactory headingModuleFactory) {
this.drive = drive;
this.pose = pose;
headingModule = headingModuleFactory.create(drive.getRotateToHeadingPid());

pf.setPrefix(this);
this.addRequirements(drive);
logic = new SwerveSimpleTrajectoryLogic(assertionManager);
logic = new SwerveSimpleTrajectoryLogic();
alternativeIsFinishedSupplier = () -> false;
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ public void periodic() {
isNavXReady = true;
}
updatePose();
aKitLog.record("Heading", currentHeading.getDegrees());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@

import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.geometry.Translation2d;
import xbot.common.subsystems.drive.SwervePointKinematics;

public interface ProvidesInterpolationData {
public Translation2d getTranslation2d();

public double getSecondsForSegment();

public Rotation2d getRotation2d();

public SwervePointKinematics getKinematics();
}
Loading

0 comments on commit 68cb567

Please sign in to comment.