Team138Entropy / Entropy2022

FIRST Robotics Team Entropy 138's code for the 2022 season
Other
3 stars 0 forks source link

Vision LED Control #15

Open joecaraccio opened 2 years ago

joecaraccio commented 2 years ago

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%

joecaraccio commented 2 years ago

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)