-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ArmSubsystem
- Loading branch information
Showing
52 changed files
with
1,163 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
BitBuckets robot code for 2025 | ||
BitBuckets robot code for 2025 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name":"FRC 2025 Path Choreo plan", | ||
"version":1, | ||
"version":, | ||
"type":"Swerve", | ||
"variables":{ | ||
"expressions":{}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package frc.robot.commands; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.robot.subsystems.ClawSubsystem.ClawSubsystem; | ||
|
||
public class CloseClawCommand extends Command { | ||
private final ClawSubsystem clawSubsystem; | ||
|
||
public CloseClawCommand(ClawSubsystem clawSubsystem) { | ||
this.clawSubsystem = clawSubsystem; | ||
addRequirements(clawSubsystem); | ||
} | ||
|
||
public void initialize() { | ||
clawSubsystem.close(); | ||
} | ||
|
||
public boolean isFinished() { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 13 additions & 3 deletions
16
src/main/java/frc/robot/commands/ElevatorCommands/ManualElevatorCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
src/main/java/frc/robot/commands/ElevatorCommands/ResetElevatorEncoderCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
package frc.robot.commands.ElevatorCommands; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.robot.subsystems.ElevatorSubsystem.ElevatorEncoderIO; | ||
import frc.robot.subsystems.ElevatorSubsystem.ElevatorSubsystem; | ||
import org.littletonrobotics.junction.Logger; | ||
|
||
public class ResetElevatorEncoderCommand extends Command implements ElevatorEncoderIO { | ||
public class ResetElevatorEncoderCommand extends Command { | ||
public ElevatorSubsystem elevator; | ||
double loadHeight = 0; | ||
|
||
public ResetElevatorEncoderCommand(ElevatorSubsystem elevator) { | ||
this.elevator = elevator; | ||
addRequirements(elevator); | ||
} | ||
@Override | ||
public void execute(){ | ||
this.loadHeight = 0.01; | ||
Logger.recordOutput("ElevatorSubsystem/loadHeight", loadHeight); | ||
|
||
elevator.resetLoadHeightEncoderValue(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package frc.robot.commands; | ||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.robot.subsystems.AlgaeIntakeSubsystem.AlgaeIntakeSubsystem; | ||
|
||
public class IntakePickupCommand extends Command { | ||
private final AlgaeIntakeSubsystem intakeSubsystem; | ||
|
||
public IntakePickupCommand(AlgaeIntakeSubsystem intakeSubsystem) { | ||
this.intakeSubsystem = intakeSubsystem; | ||
addRequirements(intakeSubsystem); | ||
} | ||
|
||
public void initialize() { | ||
intakeSubsystem.pickup(); | ||
} | ||
|
||
public boolean isFinished() { | ||
return true; | ||
} | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package frc.robot.commands; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.robot.subsystems.ClawSubsystem.ClawSubsystem; | ||
|
||
public class OpenClawCommand extends Command { | ||
private final ClawSubsystem clawSubsystem; | ||
|
||
public OpenClawCommand(ClawSubsystem clawSubsystem) { | ||
this.clawSubsystem = clawSubsystem; | ||
addRequirements(clawSubsystem); | ||
} | ||
|
||
public void initialize() { | ||
clawSubsystem.open(); | ||
} | ||
|
||
public boolean isFinished() { | ||
return true; | ||
} | ||
} | ||
|
Oops, something went wrong.