Skip to content

Conversation

RobotLeopard86
Copy link
Contributor

The original LED subsystem was based on AddressableLED, however it was migrated to a direct PWM controller after it was found that the original LED strips did not support the protocol used by WPILib and AddressableLED. A strip that supports AddressableLED's protocol is now being added, hence this PR consisting of a slightly-updated version of the original LED subsystem implementation based on AddressableLED. The PWM-based LED controller should remain in-tree for now.

@RobotLeopard86 RobotLeopard86 marked this pull request as ready for review February 26, 2025 23:56
Copy link
Member

@AceiusRedshift AceiusRedshift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there. I have some nitpicks and a very minor issue, but once you resolve them I think it's good to merge. Nice job :)

import edu.wpi.first.units.measure.Distance;

public class AddressableLEDConstants {
public record Range(int low, int high) {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does range do? It's not immediately obvious, so there should be a javadoc here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like Aceius said, it's still not clear what the purpose of Range is. The parameters are obvious, so you can remove the javadoc comments for those, but you need to make it clear when and where Range is used. Someone should not have to read through to code and use context to understand the purpose of this

Copy link

@Zr6573 Zr6573 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only problems I can see have been addressed, looks good on my end

import edu.wpi.first.units.measure.Distance;

public class AddressableLEDConstants {
public record Range(int low, int high) {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like Aceius said, it's still not clear what the purpose of Range is. The parameters are obvious, so you can remove the javadoc comments for those, but you need to make it clear when and where Range is used. Someone should not have to read through to code and use context to understand the purpose of this

@RobotLeopard86 RobotLeopard86 requested a review from bforcum March 13, 2025 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants