Skip to content

Conversation

@blazecoding2009
Copy link

No description provided.

Copy link
Owner

@PerfectlyInternal PerfectlyInternal left a comment

Choose a reason for hiding this comment

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

a few minor changes to keep stuff in order, overall looks like it should work

public class Leds extends SubsystemBase {
private final LedConfig config; // Configuration object for LEDs

private Spark LEDController; // Spark object for controlling LEDs
Copy link
Owner

Choose a reason for hiding this comment

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

move this to the config so the user can pass their own spark if theyd like

Copy link
Author

Choose a reason for hiding this comment

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

confused about this, how would i do that

Copy link
Owner

Choose a reason for hiding this comment

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

take a look at other subsystems that use non-motor hardware & their configs

Copy link
Author

Choose a reason for hiding this comment

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

all sybsystems haev motors 💀

* - config: Configuration object for LEDs
*/
public Leds(LedConfig config) {
this.LEDController = new Spark(config.LEDPort); // Initialize LED controller
Copy link
Owner

Choose a reason for hiding this comment

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

remember to change references to the controller when its in the config, and also check to see if it should be inited from port or just using the object passed in the config

Copy link
Author

Choose a reason for hiding this comment

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

imo it should be inited from the port, makes it less confusing in config

Choose a reason for hiding this comment

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

If the user wants to provide their own spark object, we should support that

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.

2 participants