Package com.ctre.phoenixpro.configs
Class CANcoderConfiguration
java.lang.Object
com.ctre.phoenixpro.configs.CANcoderConfiguration
- All Implemented Interfaces:
ParentConfiguration,ISerializable
@Deprecated(forRemoval=true) public class CANcoderConfiguration extends Object implements ParentConfiguration
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.
Class for CANcoder, a CAN based magnetic encoder that provides absolute and
relative position along with filtered velocity.
This handles the configurations for the
CANcoder-
Field Summary
Fields Modifier and Type Field Description booleanFutureProofConfigsDeprecated, for removal: This API element is subject to removal in a future version.True if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.MagnetSensorConfigsMagnetSensorDeprecated, for removal: This API element is subject to removal in a future version.Configs that affect the magnet sensor and how to interpret it. -
Constructor Summary
Constructors Constructor Description CANcoderConfiguration()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and Type Method Description StatusCodedeserialize(String string)Deprecated, for removal: This API element is subject to removal in a future version.Take a string and deserialize it to this configurationStringserialize()Deprecated, for removal: This API element is subject to removal in a future version.Get the serialized form of this configurationStringtoString()Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
FutureProofConfigs
Deprecated, for removal: This API element is subject to removal in a future version.True if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.This flag addresses a corner case where the device may have firmware with newer configs that didn't exist when this version of the API was built. If this occurs and this flag is true, unsupported new configs will be factory defaulted to avoid unexpected behavior.
This is also the behavior in Phoenix 5, so this flag is defaulted to true to match.
-
MagnetSensor
Deprecated, for removal: This API element is subject to removal in a future version.Configs that affect the magnet sensor and how to interpret it.Includes sensor range and other configs related to sensor.
-
-
Constructor Details
-
CANcoderConfiguration
public CANcoderConfiguration()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
serialize
Deprecated, for removal: This API element is subject to removal in a future version.Get the serialized form of this configuration- Specified by:
serializein interfaceISerializable- Returns:
- Serialized form of this config group
-
deserialize
Deprecated, for removal: This API element is subject to removal in a future version.Take a string and deserialize it to this configuration- Specified by:
deserializein interfaceParentConfiguration- Returns:
- Return code of the deserialize method
-