Skip to content

Consolidate SparkFlex motor factories #21

@mpulte

Description

@mpulte

We have a few motor factories that essentially setup SparkFlexes the same way. We should consolidate them into a single motor factory with some sane defaults. Fluent configuration with method chaining would be ideal. I'm picturing the call to look something like this.

SparkFlexFactory.createMotor(
    motor -> motor.smartCurrentLimit(60),
    encoder -> encoder,
    controller -> controller.pidWrapping(0, 1.0));

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions