Package lib.custom.motorcontrollers
Interface SmartMotorController
- All Superinterfaces:
edu.wpi.first.wpilibj.motorcontrol.MotorController
- All Known Implementing Classes:
CustomSparkMax,CustomTalonFX,SmartMotorController.SpeedModifiedSmartMotor
public interface SmartMotorController
extends edu.wpi.first.wpilibj.motorcontrol.MotorController
Represents a "smart" motor controller, like the TalonFX, TalonSRX, or SparkMax
These should support brake mode, follow mode, limit switches, and various closed-loop control modes.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetMotorBrake(boolean brake) default SmartMotorControllerwithSpeedMultiplier(double multiplier) Methods inherited from interface edu.wpi.first.wpilibj.motorcontrol.MotorController
disable, get, getInverted, set, setInverted, setVoltage, setVoltage, stopMotor
-
Method Details
-
isFwdLimitSwitchPressed
- Throws:
IllegalAccessException
-
isRevLimitSwitchPressed
- Throws:
IllegalAccessException
-
setMotorBrake
void setMotorBrake(boolean brake) -
withSpeedMultiplier
-