CTRE Phoenix Pro C++ 23.0.12
ctre::phoenixpro::configs::MotorOutputConfigs Class Reference

Configs that directly affect motor-output. More...

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

Inheritance diagram for ctre::phoenixpro::configs::MotorOutputConfigs:
ctre::phoenixpro::configs::ParentConfiguration ctre::phoenixpro::ISerializable

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::InvertedValue Inverted = signals::InvertedValue::CounterClockwise_Positive
 Invert state of the device. More...
 
signals::NeutralModeValue NeutralMode = signals::NeutralModeValue::Coast
 The state of the motor controller bridge when output is neutral or disabled. More...
 
double DutyCycleNeutralDeadband = 0
 Configures the output deadband percentage. More...
 
double PeakForwardDutyCycle = 1
 Maximum (forward) output during duty cycle based control modes. More...
 
double PeakReverseDutyCycle = -1
 Minimum (reverse) output during duty cycle based control modes. More...
 

Detailed Description

Configs that directly affect motor-output.

Includes Motor Invert and various limit features.

Member Function Documentation

◆ Deserialize()

ctre::phoenix::StatusCode ctre::phoenixpro::configs::MotorOutputConfigs::Deserialize ( const std::string &  string)
inlinevirtual

◆ Serialize()

std::string ctre::phoenixpro::configs::MotorOutputConfigs::Serialize ( ) const
inlinevirtual

◆ ToString()

std::string ctre::phoenixpro::configs::MotorOutputConfigs::ToString ( ) const
inlinevirtual

Member Data Documentation

◆ DutyCycleNeutralDeadband

double ctre::phoenixpro::configs::MotorOutputConfigs::DutyCycleNeutralDeadband = 0

Configures the output deadband percentage.

Minimum Value: 0.0 Maximum Value: 0.25 Default Value: 0 Units: fractional

◆ Inverted

signals::InvertedValue ctre::phoenixpro::configs::MotorOutputConfigs::Inverted = signals::InvertedValue::CounterClockwise_Positive

Invert state of the device.

◆ NeutralMode

signals::NeutralModeValue ctre::phoenixpro::configs::MotorOutputConfigs::NeutralMode = signals::NeutralModeValue::Coast

The state of the motor controller bridge when output is neutral or disabled.

◆ PeakForwardDutyCycle

double ctre::phoenixpro::configs::MotorOutputConfigs::PeakForwardDutyCycle = 1

Maximum (forward) output during duty cycle based control modes.

Minimum Value: -1.0 Maximum Value: 1.0 Default Value: 1 Units: fractional

◆ PeakReverseDutyCycle

double ctre::phoenixpro::configs::MotorOutputConfigs::PeakReverseDutyCycle = -1

Minimum (reverse) output during duty cycle based control modes.

Minimum Value: -1.0 Maximum Value: 1.0 Default Value: -1 Units: fractional


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