CTRE Phoenix 6 C++ 25.0.0-beta-4
|
Configs that affect the ToF Field of View. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
constexpr | FovParamsConfigs ()=default |
constexpr FovParamsConfigs & | WithFOVCenterX (units::angle::degree_t newFOVCenterX) |
Modifies this configuration's FOVCenterX parameter and returns itself for method-chaining and easier to use config API. | |
constexpr FovParamsConfigs & | WithFOVCenterY (units::angle::degree_t newFOVCenterY) |
Modifies this configuration's FOVCenterY parameter and returns itself for method-chaining and easier to use config API. | |
constexpr FovParamsConfigs & | WithFOVRangeX (units::angle::degree_t newFOVRangeX) |
Modifies this configuration's FOVRangeX parameter and returns itself for method-chaining and easier to use config API. | |
constexpr FovParamsConfigs & | WithFOVRangeY (units::angle::degree_t newFOVRangeY) |
Modifies this configuration's FOVRangeY parameter and returns itself for method-chaining and easier to use config API. | |
std::string | ToString () const override |
std::string | Serialize () const override |
ctre::phoenix::StatusCode | Deserialize (const std::string &to_deserialize) override |
Public Attributes | |
units::angle::degree_t | FOVCenterX = 0_deg |
Specifies the target center of the Field of View in the X direction. | |
units::angle::degree_t | FOVCenterY = 0_deg |
Specifies the target center of the Field of View in the Y direction. | |
units::angle::degree_t | FOVRangeX = 27_deg |
Specifies the target range of the Field of View in the X direction. | |
units::angle::degree_t | FOVRangeY = 27_deg |
Specifies the target range of the Field of View in the Y direction. | |
Configs that affect the ToF Field of View.
Includes range and center configs
|
constexprdefault |
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineconstexpr |
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.
newFOVCenterX | Parameter to modify |
|
inlineconstexpr |
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.
newFOVCenterY | Parameter to modify |
|
inlineconstexpr |
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.
newFOVRangeX | Parameter to modify |
|
inlineconstexpr |
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.
newFOVRangeY | Parameter to modify |
units::angle::degree_t ctre::phoenix6::configs::FovParamsConfigs::FOVCenterX = 0_deg |
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.
units::angle::degree_t ctre::phoenix6::configs::FovParamsConfigs::FOVCenterY = 0_deg |
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.
units::angle::degree_t ctre::phoenix6::configs::FovParamsConfigs::FOVRangeX = 27_deg |
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.
units::angle::degree_t ctre::phoenix6::configs::FovParamsConfigs::FOVRangeY = 27_deg |
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.