Package frc.team_8840_lib.controllers
Class ControllerGroup.SpeedController
java.lang.Object
frc.team_8840_lib.utils.IO.IOLayer
frc.team_8840_lib.controllers.ControllerGroup.SpeedController
- Direct Known Subclasses:
ControllerGroup.CANSpeedController
- Enclosing class:
ControllerGroup
-
Constructor Summary
ConstructorsConstructorDescriptionSpeedController(int port, SCType type) Deprecated.SpeedController(SCType type) -
Method Summary
Modifier and TypeMethodDescriptionEvolves the speed controller into a speed controller group.edu.wpi.first.wpilibj.motorcontrol.PWMMotorControllerintgetPort()doublegetSpeed()getType()voidinvert()booleanbooleanisPWM()voidsetSpeed(double speed) voidsetSpeedIO(double speed) voidstop()Methods inherited from class frc.team_8840_lib.utils.IO.IOLayer
close, getBaseName, isReal, setReal
-
Constructor Details
-
SpeedController
Deprecated.Creates a speed controller at port with type- Parameters:
port-type-
-
SpeedController
-
-
Method Details
-
invert
public void invert() -
setSpeed
public void setSpeed(double speed) -
stop
public void stop() -
evolve
Evolves the speed controller into a speed controller group. Speed Controller Groups send the info to the NetworkTables, so doing this will allow the info to send. -
getSpeed
public double getSpeed() -
getController
public edu.wpi.first.wpilibj.motorcontrol.PWMMotorController getController() -
getType
-
getPort
public int getPort() -
getInitializedName
-
isInitialized
public boolean isInitialized() -
isPWM
public boolean isPWM() -
setSpeedIO
public void setSpeedIO(double speed)
-