-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added default command for LEDSubsystem #66
Conversation
Added command that turns on a blue light when note is in the index and a green light when the note is aligned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some cleanup, and making sure logic / tolerance is what we need it to be?
src/main/java/frc/team2412/robot/subsystems/LauncherSubsystem.java
Outdated
Show resolved
Hide resolved
src/main/java/frc/team2412/robot/commands/LED/LightsCommand.java
Outdated
Show resolved
Hide resolved
src/main/java/frc/team2412/robot/commands/LED/LightsCommand.java
Outdated
Show resolved
Hide resolved
src/main/java/frc/team2412/robot/subsystems/LauncherSubsystem.java
Outdated
Show resolved
Hide resolved
fixed some logic errors and did a spotless run
merge conflict
Had a duplicate at speed method so removed the new one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We can add other color options in a different PR.
src/main/java/frc/team2412/robot/commands/LED/LightsCommand.java
Outdated
Show resolved
Hide resolved
It might be useful to add an LED color for communicating to the drivers that the robot's intake is off |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LEDs aren't planned to be installed on the robot this week, so it'd be best to hold off on this until after the Glacier Peak competition.
Do we want to close it until then? |
I've converted it into a draft for now. |
Added color to check if intake is on or not and added a end command to disable the leds
Fixed methods that used outdated motors
Added parameter for led command
enabled led subsystem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to make sure there is ambiguity between the state of robot and LEDs.
src/main/java/frc/team2412/robot/subsystems/IntakeSubsystem.java
Outdated
Show resolved
Hide resolved
src/main/java/frc/team2412/robot/commands/LED/LightsCommand.java
Outdated
Show resolved
Hide resolved
New violet color to check if feeder sensor sees a note.
Changed isIntakeOn method to only check for intaking and not also rejecting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - We can deal with back intake during testing. Though, should deal with failing formatting failures.
Fixed merge conflicts
testing changes on led stuff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to re-enable auto
Added command that turns on a blue light when note is in the index and a green light when the note is aligned.