Skip to content

Support components whose constructor does not take a port, but takes other arguments #366

@lizlooney

Description

@lizlooney

wpilib.OnboardIMU should be a component. However, its constructor does not take a port. It takes a wpilib.OnboardIMU.MountOrientation.

Our component code currently assumes that a component constructor takes one or more ports. We need to handle this case where the constructor parameter is a wpilib.OnboardIMU.MountOrientation.

Metadata

Metadata

Assignees

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