Skip to content

Commit

Permalink
made note align run forever
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Mar 28, 2024
1 parent b8210d2 commit 60b432d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/frc/robot/commands/auto/NoteAlign.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public void execute() {
noteX = noteAngles.get()[0];
}

if (_headingController.atSetpoint()) {

} else {

}

double rotationVelocity = MathUtil.clamp(
_headingController.calculate(noteX, 0),
-Speeds.SWERVE_DRIVE_MAX_ANGULAR_SPEED,
Expand All @@ -76,6 +82,6 @@ public void end(boolean interrupted) {
// Returns true when the command should end.
@Override
public boolean isFinished() {
return _headingController.atSetpoint();
return false;
}
}
1 change: 1 addition & 0 deletions src/main/java/frc/robot/commands/leds/DefaultLED.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void execute() {
switch (UtilFuncs.GetLEDs()) {
case DEFAULT:
_leds.setColor(UtilFuncs.GetAlliance() == Alliance.Red ? LEDColors.RED : LEDColors.BLUE);
// 16 side | 19 back
// leds.rainbow();
break;

Expand Down

0 comments on commit 60b432d

Please sign in to comment.