Fix dimmable LED off-state, topic names, PWM flicker, brightness update outside kDefault, indefinite blinking, and blinking reliability#2337
Conversation
|
This works as expected on a LL2+ now, with additional image changes to enable hardware PWM (otherwise the brightness is flickery since PV doesn't leave room for consistent software PWM). |
frcwildfire8151
left a comment
There was a problem hiding this comment.
We can confirm this works, but Limelight 2+ still flickers when brightness isn't set to 0% or 100%.
frcwildfire8151
left a comment
There was a problem hiding this comment.
Tried flashing Limelight 2 image and uploading this Limelight 2+ hardware config, it still flickers when brightness isn't set to 0% or 100%.
|
See my previous message for an explanation of why. |
|
Once combined with photon-image-modifier#124, this fixes all of the problems I identified with illumination LED control on a LL2+ |
|
Let's cut an image tag, and incorporate that in this PR? |
photon-core/src/main/java/org/photonvision/common/hardware/VisionLED.java
Outdated
Show resolved
Hide resolved
9f2131a to
c558585
Compare
c558585 to
0cb847e
Compare
photon-core/src/main/java/org/photonvision/common/hardware/VisionLED.java
Show resolved
Hide resolved
kDefault
kDefaultkDefault, indefinite blinking, and blinking reliability
|
There are still two outstanding problems that I noticed in my most recent round of testing, which may both be outside of the scope of this PR.
|
Description
This fixes a few problems with controlling dimmable LEDs.
kDefault. The output state is now tracked separately so that brightness updates can be correctly applied.-1blinks wasn't implemented, now it is.Tested on a LL2+ and LL3, LED control works as expected (NT updates work, brightness changes work, brightness is not flickery) once combined with photon-image-modifier#124.
Closes #2335
known issues
Meta
Merge checklist: