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

@Deprecated(forRemoval=true)
public abstract class ControlRequest
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Classes in the phoenixpro package will be removed in 2024. Users should instead use classes from the phoenix6 package.
Abstract Control Request class that other control requests extend for use.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected ControlInfo requestReference
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors 
    Constructor Description
    ControlRequest​(String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Classes in the phoenixpro package will be removed in 2024.
  • Method Summary

    Modifier and Type Method Description
    ControlInfo getControlInfo()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets information about this control request.
    abstract StatusCode sendRequest​(String network, int deviceHash, boolean cancelOtherRequests)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ControlRequest

      Deprecated, for removal: This API element is subject to removal in a future version.
      Classes in the phoenixpro package will be removed in 2024. Users should instead use classes from the phoenix6 package.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getControlInfo

      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets information about this control request.
      Returns:
      An instance of ControlInfo containing information about this control request