Package com.ctre.phoenixpro.hardware
Class ParentDevice
java.lang.Object
com.ctre.phoenix6.jni.CtreJniWrapper
com.ctre.phoenixpro.hardware.ParentDevice
- Direct Known Subclasses:
CoreCANcoder
,CorePigeon2
,CoreTalonFX
@Deprecated(forRemoval=true) public abstract class ParentDevice extends CtreJniWrapper
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ParentDevice.MapGenerator<T>
Deprecated, for removal: This API element is subject to removal in a future version.Classes in the phoenixpro package will be removed in 2024. -
Field Summary
Fields Modifier and Type Field Description protected DeviceIdentifier
deviceIdentifier
Deprecated, for removal: This API element is subject to removal in a future version.protected static double
kDefaultControlRatePeriodsSec
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
Constructors Constructor Description ParentDevice(int deviceID, String model, String canbus)
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 ControlRequest
getAppliedControl()
Deprecated, for removal: This API element is subject to removal in a future version.Get the latest applied controlString
getCANBus()
Deprecated, for removal: This API element is subject to removal in a future version.int
getDeviceID()
Deprecated, for removal: This API element is subject to removal in a future version.protected <T> StatusSignalValue<T>
lookupStatusSignalValue(int spn, Class<T> classOfSignal, int mapIter, ParentDevice.MapGenerator<T> generator, String signalName, boolean reportOnConstruction)
Deprecated, for removal: This API element is subject to removal in a future version.protected <T> StatusSignalValue<T>
lookupStatusSignalValue(int spn, Class<T> classOfSignal, String signalName, boolean reportOnConstruction)
Deprecated, for removal: This API element is subject to removal in a future version.protected abstract void
reportIfTooOld()
Deprecated, for removal: This API element is subject to removal in a future version.protected StatusCode
setControlPrivate(ControlRequest request)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
kDefaultControlRatePeriodsSec
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
deviceIdentifier
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
ParentDevice
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.
-
-
Method Details
-
reportIfTooOld
Deprecated, for removal: This API element is subject to removal in a future version. -
getDeviceID
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the device ID of this device [0,62].
-
getCANBus
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- name of the CAN bus this device is on.
-
setControlPrivate
Deprecated, for removal: This API element is subject to removal in a future version. -
getAppliedControl
Deprecated, for removal: This API element is subject to removal in a future version.Get the latest applied control- Returns:
- Latest applied control
-
lookupStatusSignalValue
protected <T> StatusSignalValue<T> lookupStatusSignalValue(int spn, Class<T> classOfSignal, String signalName, boolean reportOnConstruction)Deprecated, for removal: This API element is subject to removal in a future version. -
lookupStatusSignalValue
protected <T> StatusSignalValue<T> lookupStatusSignalValue(int spn, Class<T> classOfSignal, int mapIter, ParentDevice.MapGenerator<T> generator, String signalName, boolean reportOnConstruction)Deprecated, for removal: This API element is subject to removal in a future version.
-