Skip to content

auto #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public enum Modules {;

public static final double kPXAuto = 0; //TODO: find
public static final double kPYAuto = 0; //TODO: find
public static final double kThetaAuto = 0; //TODO: find
public static final double kPThetaAuto = 0; //TODO: find
}

public static final class ModuleConstants {
Expand Down
14 changes: 1 addition & 13 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,14 @@ private void configureButtonBindings() {
);

new Button(controller::getLeftBumperPressed).whenPressed(swerve.resetGyroCommand());
new Button(controller::getRightBumperPressed).whenPressed(swerve.resetModulesCommand(), false); // TODO: test
new Button(controller::getRightBumperPressed).whenPressed(swerve.resetModulesCommand(), false);
}

/**
* Use this to pass the autonomous command to the main {@link Robot} class.
*
* @return the command to run in autonomous
*/
// public Command getAutonomousCommand() {
// return new RunCommand(
// ()-> {
// swerve.setModulesStates(
// new SwerveModuleState[]{
// new SwerveModuleState(0, new Rotation2d(Constants.SwerveConstants.kOffsetAngle[0])),
// new SwerveModuleState(0, new Rotation2d(Constants.SwerveConstants.kOffsetAngle[1])),
// new SwerveModuleState(0, new Rotation2d(Constants.SwerveConstants.kOffsetAngle[2])),
// new SwerveModuleState(0, new Rotation2d(Constants.SwerveConstants.kOffsetAngle[3]))
// });
// }, swerve);
// }

public Command getAutonomousCommand(){
return swerve.resetModulesCommand();
Expand Down
Loading