You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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:
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%
The text was updated successfully, but these errors were encountered: