Skip to content

Commit

Permalink
lerp saver works, can be used when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Apr 1, 2024
1 parent ca979fb commit a756529
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import frc.robot.commands.auto.AutoAmp;
import frc.robot.commands.auto.AutonShoot;
import frc.robot.commands.auto.NoteAlign;
import frc.robot.commands.auto.SaveLerpPoints;
import frc.robot.commands.elevator.OperateElevator;
import frc.robot.commands.elevator.SetElevator;
import frc.robot.commands.intake.FeedActuate;
Expand Down Expand Up @@ -71,6 +72,8 @@ public class RobotContainer {
// sendable chooser for auton commands
private final SendableChooser<Command> _autonChooser;

// for recording lerp points and generating code
private final SaveLerpPoints _lerpSaver = new SaveLerpPoints(_shooterSubsystem, _elevatorSubsystem);

/**
* The container for the robot. Contains subsystems, OI devices, and commands.
Expand Down Expand Up @@ -147,6 +150,9 @@ private void configureBindings() {
)
);

// _operatorController.options().onTrue(_lerpSaver);
// _operatorController.touchpad().onTrue(Commands.runOnce(_lerpSaver::showCode));

_operatorController.square().whileTrue(new FeedActuate(_intakeSubsystem, ActuatorState.OUT, FeedMode.INTAKE)).whileTrue(
Commands.run(() -> {
if (_intakeSubsystem.hasNote()) _ledSubsystem.blink(LEDColors.GREEN, LEDColors.NOTHING, 0.1);
Expand Down

0 comments on commit a756529

Please sign in to comment.