CTRE Phoenix Pro C++ 23.0.12
|
Configs that affect the magnet sensor and how to interpret it. More...
#include <ctre/phoenixpro/configs/Configs.hpp>
Public Member Functions | |
std::string | ToString () const |
std::string | Serialize () const |
ctre::phoenix::StatusCode | Deserialize (const std::string &string) |
virtual std::string | ToString () const =0 |
virtual ctre::phoenix::StatusCode | Deserialize (const std::string &string)=0 |
virtual std::string | Serialize () const =0 |
Public Attributes | |
signals::SensorDirectionValue | SensorDirection = signals::SensorDirectionValue::CounterClockwise_Positive |
Direction of the sensor to determine positive facing the LED side of the CANcoder. More... | |
double | MagnetOffset = 0 |
This offset is added to the reported position, allowing the application to trim the zero position. More... | |
signals::AbsoluteSensorRangeValue | AbsoluteSensorRange = signals::AbsoluteSensorRangeValue::Unsigned_0To1 |
The range of the absolute sensor, either [0, 1) or [-0.5, 0.5). More... | |
Configs that affect the magnet sensor and how to interpret it.
Includes sensor range and other configs related to sensor.
|
inlinevirtual |
Implements ctre::phoenixpro::configs::ParentConfiguration.
|
inlinevirtual |
Implements ctre::phoenixpro::ISerializable.
|
inlinevirtual |
Implements ctre::phoenixpro::configs::ParentConfiguration.
signals::AbsoluteSensorRangeValue ctre::phoenixpro::configs::MagnetSensorConfigs::AbsoluteSensorRange = signals::AbsoluteSensorRangeValue::Unsigned_0To1 |
The range of the absolute sensor, either [0, 1) or [-0.5, 0.5).
double ctre::phoenixpro::configs::MagnetSensorConfigs::MagnetOffset = 0 |
This offset is added to the reported position, allowing the application to trim the zero position.
When set to the default value of zero, position reports zero when magnet north pole aligns with the LED.
Minimum Value: -1 Maximum Value: 1 Default Value: 0 Units: rotations
signals::SensorDirectionValue ctre::phoenixpro::configs::MagnetSensorConfigs::SensorDirection = signals::SensorDirectionValue::CounterClockwise_Positive |
Direction of the sensor to determine positive facing the LED side of the CANcoder.