Skip to content

Commit

Permalink
made MotorSubsystem allow use of non-enums
Browse files Browse the repository at this point in the history
  • Loading branch information
cuttestkittensrule committed Feb 8, 2024
1 parent 0bc497c commit a9189d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
/**
* Defines PID controll over a motor, with values specified by an encoder
*
* @param <T> the {@link MotorSubsystem.Position} type to use positions from. must be an enum
* @param <T> the {@link MotorSubsystem.Position} type to use positions from.
*/
public abstract class MotorSubsystem<T extends Enum<T> & MotorSubsystem.Position> extends PIDSubsystem implements Motor {
public abstract class MotorSubsystem<T extends MotorSubsystem.Position> extends PIDSubsystem implements Motor {

protected final Motor motor;
protected final Encoder encoder;
Expand Down

0 comments on commit a9189d8

Please sign in to comment.