Skip to content

Commit

Permalink
One
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachOrr committed Feb 18, 2022
1 parent 0c82132 commit e7e571a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ private CtreUtils() {}

public static void checkCtreError(ErrorCode errorCode, String message) {
if (errorCode != ErrorCode.OK) {
DriverStation.reportError(String.format("%s: %s", message, errorCode.toString()), false);
// DriverStation.reportError(String.format("%s: %s", message, errorCode.toString()), false);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public ControllerImplementation create(Falcon500SteerConfiguration<T> steerConfi
}

private static class ControllerImplementation implements SteerController {
private static final int ENCODER_RESET_ITERATIONS = 500;
private static final int ENCODER_RESET_ITERATIONS = 125;
private static final double ENCODER_RESET_MAX_ANGULAR_VELOCITY = Math.toRadians(0.5);

private final TalonFX motor;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/teleop/FlareCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public FlareCommand(Supplier<Translation2d> robotTranslationSupplier, AutoDrive

public FlareCommand(Translation2d targetMeters, Supplier<Translation2d> robotTranslationSupplier, AutoDrive autoDrive, Drivetrain drivetrain, Heading heading) {
addCommands(
new HeadingToTargetSequenceCommand(targetMeters, robotTranslationSupplier, heading).withTimeout(1),
new HeadingToTargetSequenceCommand(targetMeters, robotTranslationSupplier, heading),
new DistanceToTargetCommand(targetMeters, Units.inchesToMeters(10), robotTranslationSupplier, autoDrive, heading)
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Heading.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class Heading extends SubsystemBase {
/**
* PID used to converge the robot to the maintainHeading from it's current heading.
*/
private PIDController rotationController = new PIDController(0.007, 0.0, 0.0);
private PIDController rotationController = new PIDController(0.01, 0.0, 0.0);

/**
* Heading subsystem to maintain a static heading of the robot.
Expand Down

0 comments on commit e7e571a

Please sign in to comment.