CTRE Phoenix 6 C++ 24.3.0
ctre::phoenix6::configs::Pigeon2FeaturesConfigs Class Reference

Configs to enable/disable various features of the Pigeon2. More...

#include <ctre/phoenix6/configs/Configs.hpp>

Inheritance diagram for ctre::phoenix6::configs::Pigeon2FeaturesConfigs:
ctre::phoenix6::configs::ParentConfiguration ctre::phoenix6::ISerializable

Public Member Functions

Pigeon2FeaturesConfigsWithEnableCompass (bool newEnableCompass)
 Modifies this configuration's EnableCompass parameter and returns itself for method-chaining and easier to use config API. More...
 
Pigeon2FeaturesConfigsWithDisableTemperatureCompensation (bool newDisableTemperatureCompensation)
 Modifies this configuration's DisableTemperatureCompensation parameter and returns itself for method-chaining and easier to use config API. More...
 
Pigeon2FeaturesConfigsWithDisableNoMotionCalibration (bool newDisableNoMotionCalibration)
 Modifies this configuration's DisableNoMotionCalibration parameter and returns itself for method-chaining and easier to use config API. More...
 
std::string ToString () const override
 
std::string Serialize () const override
 
ctre::phoenix::StatusCode Deserialize (const std::string &to_deserialize) override
 
virtual std::string ToString () const =0
 
virtual ctre::phoenix::StatusCode Deserialize (const std::string &string)=0
 
virtual std::string Serialize () const =0
 

Public Attributes

bool EnableCompass = false
 Turns on or off the magnetometer fusing for 9-axis. More...
 
bool DisableTemperatureCompensation = false
 Disables using the temperature compensation feature. More...
 
bool DisableNoMotionCalibration = false
 Disables using the no-motion calibration feature. More...
 

Detailed Description

Configs to enable/disable various features of the Pigeon2.

These configs allow the user to enable or disable various aspects of the Pigeon2.

Member Function Documentation

◆ Deserialize()

ctre::phoenix::StatusCode ctre::phoenix6::configs::Pigeon2FeaturesConfigs::Deserialize ( const std::string &  to_deserialize)
inlineoverridevirtual

◆ Serialize()

std::string ctre::phoenix6::configs::Pigeon2FeaturesConfigs::Serialize ( ) const
inlineoverridevirtual

◆ ToString()

std::string ctre::phoenix6::configs::Pigeon2FeaturesConfigs::ToString ( ) const
inlineoverridevirtual

◆ WithDisableNoMotionCalibration()

Pigeon2FeaturesConfigs & ctre::phoenix6::configs::Pigeon2FeaturesConfigs::WithDisableNoMotionCalibration ( bool  newDisableNoMotionCalibration)
inline

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

  • Default Value: False
Parameters
newDisableNoMotionCalibrationParameter to modify
Returns
Itself

◆ WithDisableTemperatureCompensation()

Pigeon2FeaturesConfigs & ctre::phoenix6::configs::Pigeon2FeaturesConfigs::WithDisableTemperatureCompensation ( bool  newDisableTemperatureCompensation)
inline

Modifies this configuration's DisableTemperatureCompensation parameter and returns itself for method-chaining and easier to use config API.

Disables using the temperature compensation feature

  • Default Value: False
Parameters
newDisableTemperatureCompensationParameter to modify
Returns
Itself

◆ WithEnableCompass()

Pigeon2FeaturesConfigs & ctre::phoenix6::configs::Pigeon2FeaturesConfigs::WithEnableCompass ( bool  newEnableCompass)
inline

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.

  • Default Value: False
Parameters
newEnableCompassParameter to modify
Returns
Itself

Member Data Documentation

◆ DisableNoMotionCalibration

bool ctre::phoenix6::configs::Pigeon2FeaturesConfigs::DisableNoMotionCalibration = false

Disables using the no-motion calibration feature.

  • Default Value: False

◆ DisableTemperatureCompensation

bool ctre::phoenix6::configs::Pigeon2FeaturesConfigs::DisableTemperatureCompensation = false

Disables using the temperature compensation feature.

  • Default Value: False

◆ EnableCompass

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.

  • Default Value: False

The documentation for this class was generated from the following file: