CTRE Phoenix 6 C++ 25.2.1
|
Configs to enable/disable various features of the Pigeon2. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
constexpr | Pigeon2FeaturesConfigs ()=default |
constexpr Pigeon2FeaturesConfigs & | WithEnableCompass (bool newEnableCompass) |
Modifies this configuration's EnableCompass parameter and returns itself for method-chaining and easier to use config API. | |
constexpr Pigeon2FeaturesConfigs & | WithDisableTemperatureCompensation (bool newDisableTemperatureCompensation) |
Modifies this configuration's DisableTemperatureCompensation parameter and returns itself for method-chaining and easier to use config API. | |
constexpr Pigeon2FeaturesConfigs & | WithDisableNoMotionCalibration (bool newDisableNoMotionCalibration) |
Modifies this configuration's DisableNoMotionCalibration 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 Member Functions inherited from ctre::phoenix6::configs::ParentConfiguration | |
Public Member Functions inherited from ctre::phoenix6::ISerializable |
Public Attributes | |
bool | EnableCompass = false |
Turns on or off the magnetometer fusing for 9-axis. | |
bool | DisableTemperatureCompensation = false |
Disables using the temperature compensation feature. | |
bool | DisableNoMotionCalibration = false |
Disables using the no-motion calibration feature. | |
Configs to enable/disable various features of the Pigeon2.
These configs allow the user to enable or disable various aspects of the Pigeon2.
|
constexprdefault |
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineconstexpr |
Modifies this configuration's DisableNoMotionCalibration parameter and returns itself for method-chaining and easier to use config API.
Disables using the no-motion calibration feature.
newDisableNoMotionCalibration | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's DisableTemperatureCompensation parameter and returns itself for method-chaining and easier to use config API.
Disables using the temperature compensation feature.
newDisableTemperatureCompensation | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's EnableCompass parameter and returns itself for method-chaining and easier to use config API.
Turns on or off the magnetometer fusing for 9-axis. FRC users are not recommended to turn this on, as the magnetic influence of the robot will likely negatively affect the performance of the Pigeon2.
newEnableCompass | Parameter to modify |
bool ctre::phoenix6::configs::Pigeon2FeaturesConfigs::DisableNoMotionCalibration = false |
Disables using the no-motion calibration feature.
bool ctre::phoenix6::configs::Pigeon2FeaturesConfigs::DisableTemperatureCompensation = false |
Disables using the temperature compensation feature.
bool ctre::phoenix6::configs::Pigeon2FeaturesConfigs::EnableCompass = false |
Turns on or off the magnetometer fusing for 9-axis.
FRC users are not recommended to turn this on, as the magnetic influence of the robot will likely negatively affect the performance of the Pigeon2.