-
Notifications
You must be signed in to change notification settings - Fork 2
JW/RX - LEDController + Rainbow LEDs #174
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
Open
Keobkeig
wants to merge
45
commits into
main
Choose a base branch
from
jw-rx/LED-controller
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
3dbe69d
made LED abstract class
jowalkup 7ac1bb7
wrote LED commands and rainbow color
jowalkup 9cdacd9
fixed auton files and made rainbow command
jowalkup e9cc3ff
deleted test folder, worked on rainbow
jowalkup 2ca6b4e
LEDRainbow shows LEDS!
Keobkeig 175537f
.
Keobkeig 9ede47f
Add LEDSetPulseRed! (WIP to be used in autons)
Keobkeig 00a592c
Add LEDPulseColor() with any colour, SLColor util
Keobkeig 288f6cf
stuff
naowalrahman efb07a6
Merge branch 'jw-rx/LED-controller' of github.com:StuyPulse/Jim into …
naowalrahman 0824c64
Made LEDSet take LEDInstruction- pls check this !!
jowalkup 6f1392b
Cleaned up LED + auton code, made Richie mode
naowalrahman ceaf554
Cleaned up LED + auton code, made Richie mode
naowalrahman 68f8135
Merge branch 'jw-rx/LED-controller' of github.com:StuyPulse/Jim into …
naowalrahman 85c028d
- remove unused imports
vincentw921 1f6306b
simplify pulse color logic
vincentw921 6cd9fd3
clean rainbow led
vincentw921 768574f
Merge branch 'robot/nyny' of github.com:StuyPulse/Jim into jw-rx/LED-…
Keobkeig 9aa79ea
Add 3 piece with low first piece
760d05c
Remove NYC function, add theoretical y values
BenG49 aa0ca1c
Revert X alignment poses to pre-NYC values
BenG49 18e62bf
Fix typo
BenG49 9bc4e6c
Three piece W Low changes
vincentw921 e1f0f9f
Increase robot score wrist voltage
4d34453
Update pathplannerlib
57c3b12
Adjust 3 piece w low path and prep for arm jig
47f8970
Tune wrist and shoulder zero angle
vincentw921 e0cbe15
Tune stuff
vincentw921 5a3f0a7
Tune one piece mobility dock
vincentw921 4b96190
Tune 2 piece wire
vincentw921 bc671ba
Comment out old autos
vincentw921 05d62b2
BOOM THREE PIECE
vincentw921 e3a0924
Three piece wire (sad)
vincentw921 36bd6cf
Align against grid detection (#183)
vincentw921 730da45
Merge branch 'se/apr10' of https://github.com/StuyPulse/Jim into jw-r…
vincentw921 c0d51cc
LED code cleanup + LEDController periodic fix
naowalrahman f365c25
Merge branch 'main' into jw-rx/LED-controller
Keobkeig aa3daf5
Add AddressableLED sim
Keobkeig 9092837
Add LEDSection
Keobkeig 31fd6bc
Delete SLColor, use awt.Color instead
Keobkeig 235225e
Fix errors in LEDInstruction implementations
Keobkeig 2c9f6f4
INSANELY SMOOTH LEDRAINBOW
Keobkeig fc851c5
Greatly simplified LEDController subsystem
Keobkeig 6d06715
Revamped LED subsystem
Keobkeig 70ceec7
Prep SLColor for StuyLib
Keobkeig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/com/stuypulse/robot/commands/leds/LEDSetPulseRed.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package com.stuypulse.robot.commands.leds; | ||
|
|
||
| import com.stuypulse.robot.constants.Settings; | ||
| import com.stuypulse.robot.subsystems.leds.LEDController; | ||
| import com.stuypulse.robot.util.LEDColor; | ||
|
|
||
| import edu.wpi.first.wpilibj2.command.InstantCommand; | ||
|
|
||
| public class LEDSetPulseRed extends InstantCommand { | ||
| private LEDController controller; | ||
|
|
||
| public LEDSetPulseRed(double updateTime) { | ||
| this.controller = LEDController.getInstance(); | ||
| } | ||
|
|
||
| public LEDSetPulseRed() { | ||
| this(Settings.LED.MANUAL_UPDATE_TIME); | ||
| } | ||
|
|
||
| @Override | ||
| public void initialize() { | ||
| controller.forceSetLED(LEDColor.PULSE_RED); | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.