Skip to content

Led fix#246

Open
SnappyRiffs wants to merge 3 commits into
mainfrom
LED-fix
Open

Led fix#246
SnappyRiffs wants to merge 3 commits into
mainfrom
LED-fix

Conversation

@SnappyRiffs
Copy link
Copy Markdown
Contributor

I think this should work

Add flashWhileHeld method to control LED flashing based on button hold.
Updated readyToShoot command to use flashWhileHeld instead of flashCommand.

flashCommand is now a fallback if flashWhileHeld doesnt work
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new flashWhileHeld method to the LEDSubsystem and updates the LED bindings in Controls.java. A review comment identified several critical issues in the implementation: a typo in the subsystem name, an incorrect number of arguments passed to the new method, and the use of onFalse instead of whileFalse, which would cause the command to run indefinitely and block other LED operations.

Comment thread src/main/java/frc/robot/Controls.java Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant