Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f2dee50
Getting Very Close...
themehdev Jun 5, 2024
642bb30
Done with subsystem, added abstraction subsystem to i told you so but…
themehdev Jun 7, 2024
b231d68
sure ig
themehdev Jun 8, 2024
7ec9583
sure ig part 2
themehdev Jun 8, 2024
86c6f5e
Merge branch 'main' into michael
themehdev Jun 8, 2024
4b551e8
ok ig part 3
themehdev Jun 8, 2024
d69dc14
done with that merge
themehdev Jun 8, 2024
6bc25be
did that changing thing
themehdev Jun 9, 2024
dd14a51
Done? (still need constants)
themehdev Jun 9, 2024
af3e687
quick push
themehdev Jun 15, 2024
1b21eaf
ig i need to merge these
themehdev Jun 15, 2024
b8f1c23
ig i need to merge these
themehdev Jun 15, 2024
627acfa
I think this is good?
themehdev Jun 15, 2024
373da7a
oh yeah it built
themehdev Jun 15, 2024
7d9c8f0
I think that that is done
themehdev Jun 15, 2024
79f1b25
That took way too long (finished)
themehdev Jun 15, 2024
23bfd9a
got arid of the annoying deprecation stuff
themehdev Jun 15, 2024
c0c563d
Updated git stuff, as well as bindings
themehdev Jun 15, 2024
3c8d33e
quick bug fixes
themehdev Jun 15, 2024
5112ab0
did more stuff and state machine seems to work in simulator
themehdev Jun 19, 2024
a38cb05
fixed breaks, updated constants, fixed flywheels being way too precis…
themehdev Jun 22, 2024
8fa258e
now intake works even if note comes in a bit early
themehdev Jun 22, 2024
e99d92b
fixed bad math.abs logic, a few other small bugs as well
themehdev Jun 22, 2024
71435b8
Mark realized that two states were basically the same
themehdev Jun 22, 2024
64a9657
more readable still
themehdev Jun 22, 2024
5f8910b
optimizing stuff bc periodic was taking too long
themehdev Jun 24, 2024
9c92c51
fixed bad math in encoder mapper, all should be good now.
themehdev Jun 26, 2024
4109f62
just realized that encoder mapper was set up wrong
themehdev Jun 29, 2024
39a9352
OH YEAH MATH
themehdev Jul 3, 2024
5c84cc4
fixed some stuff, thought i pushed lol
themehdev Jul 8, 2024
ea3b1d2
updated stuff so motion magic should work
themehdev Jul 10, 2024
1ef6b6c
think fixed?
themehdev Jul 17, 2024
04a4cbc
woo testing time
themehdev Aug 17, 2024
6aa1158
some javadocs
themehdev Aug 17, 2024
84128b8
PWLS and new movement
themehdev Aug 31, 2024
b2d87d8
Intake Shooter IO layer fixes, and cleanup
blaze-developer Oct 22, 2024
b9b3096
merge main into intakeshooter
blaze-developer Oct 22, 2024
0acfc7c
remove temp
blaze-developer Oct 22, 2024
ef81bde
update to fix with gitignore
blaze-developer Oct 22, 2024
0ea5e83
remove xerorobot and cleanup xerotimer
blaze-developer Oct 22, 2024
d80dac7
cleanup xerotimer
blaze-developer Oct 22, 2024
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
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,13 @@ logs/
# Folder that has CTRE Phoenix Sim device config storage
ctre_sim/

<<<<<<< HEAD
#Building stuff
.gradle
build

node_modules/
=======
# gversion build constants.
src/main/java/frc/robot/BuildConstants.java
src/main/java/frc/robot/BuildConstants.java
>>>>>>> main
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"desktop": false,
}
]
}
}
254 changes: 254 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"devDependencies": {
"prettier": "3.3.3",
"prettier-plugin-java": "^2.6.4"
}
}
26 changes: 20 additions & 6 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@ public class RobotContainer {

// Subsystems

private final OISubsystem oiPanel_ = new OISubsystem(OperatorConstants.kOperatorInterfacePort);
private final SwerveSubsystem drivetrain_ = new SwerveSubsystem(CompSwerveConstants.DriveTrain);

private final IntakeShooterSubsystem intake_shooter_ =
new IntakeShooterSubsystem(new IntakeShooterIOHardware());
private final IntakeShooterSubsystem intake_shooter_ = new IntakeShooterSubsystem(
new IntakeShooterIOHardware(),
oiPanel_.actionTypeSupplier(),
oiPanel_.shootTypeSupplier(),
() -> 0.0,
() -> true
);

private final OISubsystem oiPanel_ = new OISubsystem(OperatorConstants.kOperatorInterfacePort);

/** The container for the robot. Contains subsystems, OI devices, and commands. */
public RobotContainer() {
// Configure the trigger bindings
Expand All @@ -57,13 +61,23 @@ public RobotContainer() {
*/
private void configureBindings() {
// Points all the swerve modules inward, resulting in restisting movement
gamepad_.a().whileTrue(drivetrain_.brake());
gamepad_.start().whileTrue(drivetrain_.brake());

// Point all the swerve modules to where the joystick points.
gamepad_.b().whileTrue(drivetrain_.pointModules(gamepad_::getLeftX, gamepad_::getLeftY));

// reset the field-centric heading on Y and B press simultaneously
gamepad_.y().and(gamepad_.b()).onTrue(drivetrain_.runOnce(() -> drivetrain_.seedFieldRelative()));

// Intake Shooter Binds
gamepad_.rightBumper().or(oiPanel_.collect()::getAsBoolean).whileTrue(intake_shooter_.intake());

gamepad_.a().onTrue(intake_shooter_.shoot());
oiPanel_.abort().onTrue(intake_shooter_.abort());
oiPanel_.turtle().onTrue(intake_shooter_.turtle());
oiPanel_.shoot().onTrue(intake_shooter_.shoot());
oiPanel_.eject().onTrue(intake_shooter_.eject());

}

private void setupDrivetrain() {
Expand All @@ -84,4 +98,4 @@ private void setupDrivetrain() {
public Command getAutonomousCommand() {
return Commands.print("No autonomous command configured");
}
}
}
3 changes: 1 addition & 2 deletions src/main/java/frc/robot/commands/Autos.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@

import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
import frc.robot.subsystems.IntakeShooter.IntakeShooterSubsystem;

public final class Autos {
/** Example static factory for an autonomous command. */
public static Command exampleAuto(IntakeShooterSubsystem subsystem) {
public static Command exampleAuto() {
return Commands.sequence();
}

Expand Down
Loading