CTRE Phoenix 6 C++ 25.0.0-beta-4
|
Class description for the Pigeon 2 IMU sensor that measures orientation. More...
#include <ctre/phoenix6/core/CorePigeon2.hpp>
Public Member Functions | |
constexpr | Pigeon2Configuration ()=default |
constexpr Pigeon2Configuration & | WithMountPose (MountPoseConfigs newMountPose) |
Modifies this configuration's MountPose parameter and returns itself for method-chaining and easier to use config API. | |
constexpr Pigeon2Configuration & | WithGyroTrim (GyroTrimConfigs newGyroTrim) |
Modifies this configuration's GyroTrim parameter and returns itself for method-chaining and easier to use config API. | |
constexpr Pigeon2Configuration & | WithPigeon2Features (Pigeon2FeaturesConfigs newPigeon2Features) |
Modifies this configuration's Pigeon2Features parameter and returns itself for method-chaining and easier to use config API. | |
constexpr Pigeon2Configuration & | WithCustomParams (CustomParamsConfigs newCustomParams) |
Modifies this configuration's CustomParams parameter and returns itself for method-chaining and easier to use config API. | |
std::string | ToString () const |
Get the string representation of this configuration. | |
std::string | Serialize () const |
Get the serialized form of this configuration. | |
ctre::phoenix::StatusCode | Deserialize (const std::string &to_deserialize) |
Take a string and deserialize it to this configuration. | |
Public Attributes | |
bool | FutureProofConfigs {true} |
True if we should factory default newer unsupported configs, false to leave newer unsupported configs alone. | |
MountPoseConfigs | MountPose |
Configs for Pigeon 2's Mount Pose configuration. | |
GyroTrimConfigs | GyroTrim |
Configs to trim the Pigeon2's gyroscope. | |
Pigeon2FeaturesConfigs | Pigeon2Features |
Configs to enable/disable various features of the Pigeon2. | |
CustomParamsConfigs | CustomParams |
Custom Params. | |
Class description for the Pigeon 2 IMU sensor that measures orientation.
This handles the configurations for the hardware::Pigeon2
|
constexprdefault |
|
inlinevirtual |
Take a string and deserialize it to this configuration.
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlinevirtual |
Get the serialized form of this configuration.
Implements ctre::phoenix6::ISerializable.
|
inlinevirtual |
Get the string representation of this configuration.
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineconstexpr |
Modifies this configuration's CustomParams parameter and returns itself for method-chaining and easier to use config API.
Custom Params.
Custom paramaters that have no real impact on controller.
newCustomParams | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's GyroTrim parameter and returns itself for method-chaining and easier to use config API.
Configs to trim the Pigeon2's gyroscope.
Pigeon2 allows the user to trim the gyroscope's sensitivity. While this isn't necessary for the Pigeon2, as it comes calibrated out-of-the-box, users can make use of this to make the Pigeon2 even more accurate for their application.
newGyroTrim | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's MountPose parameter and returns itself for method-chaining and easier to use config API.
Configs for Pigeon 2's Mount Pose configuration.
These configs allow the Pigeon2 to be mounted in whatever orientation that's desired and ensure the reported Yaw/Pitch/Roll is from the robot's reference.
newMountPose | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's Pigeon2Features parameter and returns itself for method-chaining and easier to use config API.
Configs to enable/disable various features of the Pigeon2.
These configs allow the user to enable or disable various aspects of the Pigeon2.
newPigeon2Features | Parameter to modify |
CustomParamsConfigs ctre::phoenix6::configs::Pigeon2Configuration::CustomParams |
Custom Params.
Custom paramaters that have no real impact on controller.
bool ctre::phoenix6::configs::Pigeon2Configuration::FutureProofConfigs {true} |
True if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.
This flag addresses a corner case where the device may have firmware with newer configs that didn't exist when this version of the API was built. If this occurs and this flag is true, unsupported new configs will be factory defaulted to avoid unexpected behavior.
This is also the behavior in Phoenix 5, so this flag is defaulted to true to match.
GyroTrimConfigs ctre::phoenix6::configs::Pigeon2Configuration::GyroTrim |
Configs to trim the Pigeon2's gyroscope.
Pigeon2 allows the user to trim the gyroscope's sensitivity. While this isn't necessary for the Pigeon2, as it comes calibrated out-of-the-box, users can make use of this to make the Pigeon2 even more accurate for their application.
MountPoseConfigs ctre::phoenix6::configs::Pigeon2Configuration::MountPose |
Configs for Pigeon 2's Mount Pose configuration.
These configs allow the Pigeon2 to be mounted in whatever orientation that's desired and ensure the reported Yaw/Pitch/Roll is from the robot's reference.
Pigeon2FeaturesConfigs ctre::phoenix6::configs::Pigeon2Configuration::Pigeon2Features |
Configs to enable/disable various features of the Pigeon2.
These configs allow the user to enable or disable various aspects of the Pigeon2.