|
CTRE Phoenix 6 C++ 25.0.0-beta-4
|
Configs to trim the Pigeon2's gyroscope. More...
#include <ctre/phoenix6/configs/Configs.hpp>
Public Member Functions | |
| constexpr | GyroTrimConfigs ()=default |
| constexpr GyroTrimConfigs & | WithGyroScalarX (units::dimensionless::scalar_t newGyroScalarX) |
| Modifies this configuration's GyroScalarX parameter and returns itself for method-chaining and easier to use config API. | |
| constexpr GyroTrimConfigs & | WithGyroScalarY (units::dimensionless::scalar_t newGyroScalarY) |
| Modifies this configuration's GyroScalarY parameter and returns itself for method-chaining and easier to use config API. | |
| constexpr GyroTrimConfigs & | WithGyroScalarZ (units::dimensionless::scalar_t newGyroScalarZ) |
| Modifies this configuration's GyroScalarZ 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::dimensionless::scalar_t | GyroScalarX = 0 |
| The gyro scalar component for the X axis. | |
| units::dimensionless::scalar_t | GyroScalarY = 0 |
| The gyro scalar component for the Y axis. | |
| units::dimensionless::scalar_t | GyroScalarZ = 0 |
| The gyro scalar component for the Z axis. | |
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.
|
constexprdefault |
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineoverridevirtual |
Implements ctre::phoenix6::ISerializable.
|
inlineoverridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineconstexpr |
Modifies this configuration's GyroScalarX parameter and returns itself for method-chaining and easier to use config API.
The gyro scalar component for the X axis.
| newGyroScalarX | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's GyroScalarY parameter and returns itself for method-chaining and easier to use config API.
The gyro scalar component for the Y axis.
| newGyroScalarY | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's GyroScalarZ parameter and returns itself for method-chaining and easier to use config API.
The gyro scalar component for the Z axis.
| newGyroScalarZ | Parameter to modify |
| units::dimensionless::scalar_t ctre::phoenix6::configs::GyroTrimConfigs::GyroScalarX = 0 |
The gyro scalar component for the X axis.
| units::dimensionless::scalar_t ctre::phoenix6::configs::GyroTrimConfigs::GyroScalarY = 0 |
The gyro scalar component for the Y axis.
| units::dimensionless::scalar_t ctre::phoenix6::configs::GyroTrimConfigs::GyroScalarZ = 0 |
The gyro scalar component for the Z axis.