Package frc.robot.subsystems
Class Motor
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.Motor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetMotorSpeed(double speed) setMotorSpeedCommand(Supplier<Double> speed) Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, periodic, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
Motor
public Motor()
-
-
Method Details
-
setMotorSpeed
public void setMotorSpeed(double speed) -
setMotorSpeedCommand
-