Skip to content
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

Vision LED Control #15

Open
joecaraccio opened this issue Dec 15, 2021 · 1 comment · May be fixed by #17
Open

Vision LED Control #15

joecaraccio opened this issue Dec 15, 2021 · 1 comment · May be fixed by #17
Assignees
Labels
offseason To be worked on in the offseason

Comments

@joecaraccio
Copy link
Collaborator

The new vision system is going to have an LED controlled via PWM. A little more complicated then just using the spike relay and telling it on/off. But it will allow us to control the brightness

We need to make a class that has the various capabilities:

  • Set LED light to off
  • Set LED light to on
  • Set LED to a percentage brightness (0 through 100%)

The PWM object can be used to control PWM. We will connect the light to a specific slot.
https://first.wpi.edu/FRC/roborio/release/docs/java/edu/wpi/first/wpilibj/PWM.html

setRaw takes a value of -1 to 1, setting it to 0 should be 0%, setting it to 1 should be 100%

@averwhy averwhy linked a pull request Dec 16, 2021 that will close this issue
@averwhy averwhy linked a pull request Dec 16, 2021 that will close this issue
@joecaraccio
Copy link
Collaborator Author

This is now deferred to the offseason. Doesn't look like any purpose for lighting on this robot (we aren't targeting reflective tape for this game)

@joecaraccio joecaraccio added the offseason To be worked on in the offseason label Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
offseason To be worked on in the offseason
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants