|
CTRE Phoenix 6 C++ 25.0.0-beta-4
|
Configs that affect the ToF sensor. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
| constexpr | ToFParamsConfigs ()=default |
| constexpr ToFParamsConfigs & | WithUpdateMode (signals::UpdateModeValue newUpdateMode) |
| Modifies this configuration's UpdateMode parameter and returns itself for method-chaining and easier to use config API. | |
| constexpr ToFParamsConfigs & | WithUpdateFrequency (units::frequency::hertz_t newUpdateFrequency) |
| Modifies this configuration's UpdateFrequency 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 | |
| signals::UpdateModeValue | UpdateMode = signals::UpdateModeValue::ShortRange100Hz |
| Update mode of the CANrange. | |
| units::frequency::hertz_t | UpdateFrequency = 50_Hz |
| Rate at which the CANrange will take measurements. | |
Configs that affect the ToF sensor.
Includes Update mode and frequency
|
constexprdefault |
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineconstexpr |
Modifies this configuration's UpdateFrequency parameter and returns itself for method-chaining and easier to use config API.
Rate at which the CANrange will take measurements. A lower frequency may provide more stable readings but will reduce the data rate of the sensor.
| newUpdateFrequency | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's UpdateMode parameter and returns itself for method-chaining and easier to use config API.
Update mode of the CANrange. The CANrange supports short-range and long-range detection at various update frequencies.
| newUpdateMode | Parameter to modify |
| units::frequency::hertz_t ctre::phoenix6::configs::ToFParamsConfigs::UpdateFrequency = 50_Hz |
Rate at which the CANrange will take measurements.
A lower frequency may provide more stable readings but will reduce the data rate of the sensor.
| signals::UpdateModeValue ctre::phoenix6::configs::ToFParamsConfigs::UpdateMode = signals::UpdateModeValue::ShortRange100Hz |
Update mode of the CANrange.
The CANrange supports short-range and long-range detection at various update frequencies.