Skip to content

Commit

Permalink
commented sensor code
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Mar 21, 2024
1 parent 5902bf0 commit 3e53d91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public RobotContainer() {
_elevatorSubsystem.setDefaultCommand(new OperateElevator(
_elevatorSubsystem,
() -> -_operatorFilterLeftY.calculate(MathUtil.applyDeadband(_operatorController.getLeftY(), 0.05))
).alongWith(Commands.runOnce(() -> _shooterSubsystem.resetHoldNote())));
));

// Non drive/operate default commands
_intakeSubsystem.setDefaultCommand(new FeedActuate(_intakeSubsystem, ActuatorState.STOWED, FeedMode.NONE));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/intake/FeedActuate.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void initialize() {
public void execute() {
_intake.actuate(_actuatorState);

if (_feedMode == FeedMode.INTAKE && _intake.hasNote()) _intake.feed(FeedMode.NONE);
// if (_feedMode == FeedMode.INTAKE && _intake.hasNote()) _intake.feed(FeedMode.NONE);
}

// Called once the command ends or is interrupted.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/shooter/SpinShooter.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ public void end(boolean interrupted) {}
// Returns true when the command should end.
@Override
public boolean isFinished() {
return _runOnce || (_state == ShooterState.AMP && _shooter.holdNote());
return _runOnce /**|| (_state == ShooterState.AMP && _shooter.holdNote())*/;
}
}

0 comments on commit 3e53d91

Please sign in to comment.