Class CANrangeConfiguration
- All Implemented Interfaces:
ParentConfiguration,ISerializable
CANrange-
Field Summary
FieldsModifier and TypeFieldDescriptionCustom Params.Configs that affect the ToF Field of ViewbooleanTrue if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.Configs that affect the ToF Proximity detectionConfigs that affect the ToF sensor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(String to_deserialize) Take a string and deserialize it to this configurationGet the serialized form of this configurationtoString()withCustomParams(CustomParamsConfigs newCustomParams) Modifies this configuration's CustomParams parameter and returns itself for method-chaining and easier to use config API.withFovParams(FovParamsConfigs newFovParams) Modifies this configuration's FovParams parameter and returns itself for method-chaining and easier to use config API.withProximityParams(ProximityParamsConfigs newProximityParams) Modifies this configuration's ProximityParams parameter and returns itself for method-chaining and easier to use config API.withToFParams(ToFParamsConfigs newToFParams) Modifies this configuration's ToFParams parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
FutureProofConfigs
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.
-
CustomParams
Custom Params.Custom paramaters that have no real impact on controller.
Parameter list:
-
ToFParams
Configs that affect the ToF sensorIncludes Update mode and frequency
Parameter list:
-
ProximityParams
Configs that affect the ToF Proximity detectionIncludes proximity mode and the threshold for simple detection
Parameter list:
-
FovParams
Configs that affect the ToF Field of ViewIncludes range and center configs
Parameter list:
-
-
Constructor Details
-
CANrangeConfiguration
public CANrangeConfiguration()
-
-
Method Details
-
withCustomParams
Modifies this configuration's CustomParams parameter and returns itself for method-chaining and easier to use config API.Custom Params.
Custom paramaters that have no real impact on controller.
Parameter list:
- Parameters:
newCustomParams- Parameter to modify- Returns:
- Itself
-
withToFParams
Modifies this configuration's ToFParams parameter and returns itself for method-chaining and easier to use config API.Configs that affect the ToF sensor
Includes Update mode and frequency
Parameter list:
- Parameters:
newToFParams- Parameter to modify- Returns:
- Itself
-
withProximityParams
Modifies this configuration's ProximityParams parameter and returns itself for method-chaining and easier to use config API.Configs that affect the ToF Proximity detection
Includes proximity mode and the threshold for simple detection
Parameter list:
- Parameters:
newProximityParams- Parameter to modify- Returns:
- Itself
-
withFovParams
Modifies this configuration's FovParams parameter and returns itself for method-chaining and easier to use config API.Configs that affect the ToF Field of View
Includes range and center configs
Parameter list:
- Parameters:
newFovParams- Parameter to modify- Returns:
- Itself
-
toString
-
serialize
Get the serialized form of this configuration- Specified by:
serializein interfaceISerializable- Returns:
- Serialized form of this config group
-
deserialize
Take a string and deserialize it to this configuration- Specified by:
deserializein interfaceParentConfiguration- Returns:
- Return code of the deserialize method
-