Skip to content
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

maple sim swerve sim #65

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

maple sim swerve sim #65

wants to merge 24 commits into from

Conversation

Superbro525Alt
Copy link
Contributor

idk check the code bruh

i think i did maple syrup sim 💀💀

@Superbro525Alt Superbro525Alt marked this pull request as ready for review February 10, 2025 07:22
@Superbro525Alt Superbro525Alt requested a review from a team as a code owner February 10, 2025 07:22
@Hazzer890
Copy link
Member

5 big pushups for that description bruh 💥💥💥💥💥

new ModuleIOSim(TunerConstants.FrontRight),
new ModuleIOSim(TunerConstants.BackLeft),
new ModuleIOSim(TunerConstants.BackRight));
new GyroIOSim(swerveDriveSimulation.getGyroSimulation()) {}, // work around crash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment outdated

Comment on lines +305 to +322
if (Constants.robotType == RobotType.SIMBOT) {
// drive.setDefaultCommand(
// drive.joystickDrive(
// () -> -simJoystick.getRawAxis(0), () -> -simJoystick.getRawAxis(1), () -> 0));
drive.setDefaultCommand(drive.joystickDrive(() -> 0, () -> 0, () -> 0));
Z.whileTrue(superstructure.align(Setpoints.L2));
X.whileTrue(superstructure.align(Setpoints.COLLECT));
} else {
drive.setDefaultCommand(
drive.joystickDrive(
() -> -controller.getLeftY(),
() -> -controller.getLeftX(),
() -> -controller.getRightX()));

controller.rightBumper().whileTrue(superstructure.align(Setpoints.L3));
controller.leftBumper().whileTrue(superstructure.align(Setpoints.L2));
controller.leftTrigger().whileTrue(superstructure.align(Setpoints.COLLECT));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is input changed in sim?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So i could test it in class

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert pls I will just use xbox controller thx

@spacey-sooty spacey-sooty changed the title 5 big booms maple sim swerve sim Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants