Package com.ctre.phoenixpro.controls
Class ControlRequest
java.lang.Object
com.ctre.phoenixpro.controls.ControlRequest
- Direct Known Subclasses:
CoastOut
,DutyCycleOut
,EmptyControl
,Follower
,MotionMagicDutyCycle
,MotionMagicTorqueCurrentFOC
,MotionMagicVoltage
,NeutralOut
,PositionDutyCycle
,PositionTorqueCurrentFOC
,PositionVoltage
,StaticBrake
,StrictFollower
,TorqueCurrentFOC
,VelocityDutyCycle
,VelocityTorqueCurrentFOC
,VelocityVoltage
,VoltageOut
public abstract class ControlRequest extends Object
Abstract Control Request class that other control requests extend for use.
-
Field Summary
Fields Modifier and Type Field Description protected ControlInfo
requestReference
-
Constructor Summary
Constructors Constructor Description ControlRequest(String name)
Constructs a new Control Request with the given name. -
Method Summary
Modifier and Type Method Description ControlInfo
getControlInfo()
Gets information about this control request.abstract StatusCode
sendRequest(String network, int deviceHash, boolean cancelOtherRequests)
-
Field Details
-
Constructor Details
-
ControlRequest
Constructs a new Control Request with the given name.- Parameters:
name
- Name of the control request
-
-
Method Details
-
sendRequest
public abstract StatusCode sendRequest(String network, int deviceHash, boolean cancelOtherRequests) -
getControlInfo
Gets information about this control request.- Returns:
- An instance of
ControlInfo
containing information about this control request
-