Skip to content

Conversation

NoRePercussions
Copy link

Description of the Change

Adds an inner class VoltageControllerOutput to AbstractMotor which allows a unique voltage-based ControllerOutput per motor.

This allows for Controllers to send output to motors via AbstractMotor::getVoltageControllerOutput.

Using an inner class managed by the motor allows for preventing two competing controllers.

Also updates tests.

Motivation

See #6 – voltage control allows for lower-level control and circumventing built-in motor PIDs.

Possible Drawbacks

This may make the codebase more complicated, as it is a distinct idea from "AbstractMotor as ControllerOutput".

Verification Process

Updated tests

Applicable Issues

#6

Adds an inner class `VoltageControllerOutput` to `AbstractMotor` which allows a unique voltage-based `ControllerOutput` per motor
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.

1 participant