Class FovParamsConfigs
- All Implemented Interfaces:
ParentConfiguration
,ISerializable
Includes range and center configs
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
Specifies the target center of the Field of View in the X direction.double
Specifies the target center of the Field of View in the Y direction.double
Specifies the target range of the Field of View in the X direction.double
Specifies the target range of the Field of View in the Y direction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(String to_deserialize) edu.wpi.first.units.measure.Angle
Helper method to get this configuration's FOVCenterX parameter converted to a unit type.edu.wpi.first.units.measure.Angle
Helper method to get this configuration's FOVCenterY parameter converted to a unit type.edu.wpi.first.units.measure.Angle
Helper method to get this configuration's FOVRangeX parameter converted to a unit type.edu.wpi.first.units.measure.Angle
Helper method to get this configuration's FOVRangeY parameter converted to a unit type.toString()
withFOVCenterX
(double newFOVCenterX) Modifies this configuration's FOVCenterX parameter and returns itself for method-chaining and easier to use config API.withFOVCenterX
(edu.wpi.first.units.measure.Angle newFOVCenterX) Modifies this configuration's FOVCenterX parameter and returns itself for method-chaining and easier to use config API.withFOVCenterY
(double newFOVCenterY) Modifies this configuration's FOVCenterY parameter and returns itself for method-chaining and easier to use config API.withFOVCenterY
(edu.wpi.first.units.measure.Angle newFOVCenterY) Modifies this configuration's FOVCenterY parameter and returns itself for method-chaining and easier to use config API.withFOVRangeX
(double newFOVRangeX) Modifies this configuration's FOVRangeX parameter and returns itself for method-chaining and easier to use config API.withFOVRangeX
(edu.wpi.first.units.measure.Angle newFOVRangeX) Modifies this configuration's FOVRangeX parameter and returns itself for method-chaining and easier to use config API.withFOVRangeY
(double newFOVRangeY) Modifies this configuration's FOVRangeY parameter and returns itself for method-chaining and easier to use config API.withFOVRangeY
(edu.wpi.first.units.measure.Angle newFOVRangeY) Modifies this configuration's FOVRangeY parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
FOVCenterX
Specifies the target center of the Field of View in the X direction.The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: -11.8
- Maximum Value: 11.8
- Default Value: 0
- Units: deg
-
FOVCenterY
Specifies the target center of the Field of View in the Y direction.The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: -11.8
- Maximum Value: 11.8
- Default Value: 0
- Units: deg
-
FOVRangeX
Specifies the target range of the Field of View in the X direction. This is the full range of the FOV.The magnitude of this is capped to abs(27 - 2*FOVCenterX).
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: 6.75
- Maximum Value: 27
- Default Value: 27
- Units: deg
-
FOVRangeY
Specifies the target range of the Field of View in the Y direction. This is the full range of the FOV.The magnitude of this is capped to abs(27 - 2*FOVCenterY).
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: 6.75
- Maximum Value: 27
- Default Value: 27
- Units: deg
-
-
Constructor Details
-
FovParamsConfigs
public FovParamsConfigs()
-
-
Method Details
-
withFOVCenterX
Modifies this configuration's FOVCenterX parameter and returns itself for method-chaining and easier to use config API.Specifies the target center of the Field of View in the X direction.
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: -11.8
- Maximum Value: 11.8
- Default Value: 0
- Units: deg
- Parameters:
newFOVCenterX
- Parameter to modify- Returns:
- Itself
-
withFOVCenterX
Modifies this configuration's FOVCenterX parameter and returns itself for method-chaining and easier to use config API.Specifies the target center of the Field of View in the X direction.
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: -11.8
- Maximum Value: 11.8
- Default Value: 0
- Units: deg
- Parameters:
newFOVCenterX
- Parameter to modify- Returns:
- Itself
-
getFOVCenterXMeasure
Helper method to get this configuration's FOVCenterX parameter converted to a unit type. If not using the Java units library,FOVCenterX
can be accessed directly instead.Specifies the target center of the Field of View in the X direction.
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: -11.8
- Maximum Value: 11.8
- Default Value: 0
- Units: deg
- Returns:
- FOVCenterX
-
withFOVCenterY
Modifies this configuration's FOVCenterY parameter and returns itself for method-chaining and easier to use config API.Specifies the target center of the Field of View in the Y direction.
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: -11.8
- Maximum Value: 11.8
- Default Value: 0
- Units: deg
- Parameters:
newFOVCenterY
- Parameter to modify- Returns:
- Itself
-
withFOVCenterY
Modifies this configuration's FOVCenterY parameter and returns itself for method-chaining and easier to use config API.Specifies the target center of the Field of View in the Y direction.
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: -11.8
- Maximum Value: 11.8
- Default Value: 0
- Units: deg
- Parameters:
newFOVCenterY
- Parameter to modify- Returns:
- Itself
-
getFOVCenterYMeasure
Helper method to get this configuration's FOVCenterY parameter converted to a unit type. If not using the Java units library,FOVCenterY
can be accessed directly instead.Specifies the target center of the Field of View in the Y direction.
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: -11.8
- Maximum Value: 11.8
- Default Value: 0
- Units: deg
- Returns:
- FOVCenterY
-
withFOVRangeX
Modifies this configuration's FOVRangeX parameter and returns itself for method-chaining and easier to use config API.Specifies the target range of the Field of View in the X direction. This is the full range of the FOV.
The magnitude of this is capped to abs(27 - 2*FOVCenterX).
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: 6.75
- Maximum Value: 27
- Default Value: 27
- Units: deg
- Parameters:
newFOVRangeX
- Parameter to modify- Returns:
- Itself
-
withFOVRangeX
Modifies this configuration's FOVRangeX parameter and returns itself for method-chaining and easier to use config API.Specifies the target range of the Field of View in the X direction. This is the full range of the FOV.
The magnitude of this is capped to abs(27 - 2*FOVCenterX).
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: 6.75
- Maximum Value: 27
- Default Value: 27
- Units: deg
- Parameters:
newFOVRangeX
- Parameter to modify- Returns:
- Itself
-
getFOVRangeXMeasure
Helper method to get this configuration's FOVRangeX parameter converted to a unit type. If not using the Java units library,FOVRangeX
can be accessed directly instead.Specifies the target range of the Field of View in the X direction. This is the full range of the FOV.
The magnitude of this is capped to abs(27 - 2*FOVCenterX).
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: 6.75
- Maximum Value: 27
- Default Value: 27
- Units: deg
- Returns:
- FOVRangeX
-
withFOVRangeY
Modifies this configuration's FOVRangeY parameter and returns itself for method-chaining and easier to use config API.Specifies the target range of the Field of View in the Y direction. This is the full range of the FOV.
The magnitude of this is capped to abs(27 - 2*FOVCenterY).
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: 6.75
- Maximum Value: 27
- Default Value: 27
- Units: deg
- Parameters:
newFOVRangeY
- Parameter to modify- Returns:
- Itself
-
withFOVRangeY
Modifies this configuration's FOVRangeY parameter and returns itself for method-chaining and easier to use config API.Specifies the target range of the Field of View in the Y direction. This is the full range of the FOV.
The magnitude of this is capped to abs(27 - 2*FOVCenterY).
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: 6.75
- Maximum Value: 27
- Default Value: 27
- Units: deg
- Parameters:
newFOVRangeY
- Parameter to modify- Returns:
- Itself
-
getFOVRangeYMeasure
Helper method to get this configuration's FOVRangeY parameter converted to a unit type. If not using the Java units library,FOVRangeY
can be accessed directly instead.Specifies the target range of the Field of View in the Y direction. This is the full range of the FOV.
The magnitude of this is capped to abs(27 - 2*FOVCenterY).
The exact value may be different for different CANrange devices due to imperfections in the sensing silicon.
- Minimum Value: 6.75
- Maximum Value: 27
- Default Value: 27
- Units: deg
- Returns:
- FOVRangeY
-
toString
-
deserialize
- Specified by:
deserialize
in interfaceParentConfiguration
-
serialize
- Specified by:
serialize
in interfaceISerializable
-