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

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

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

Inheritance diagram for ctre::phoenixpro::configs::MotionMagicConfigs:
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

double MotionMagicCruiseVelocity = 0
 This is the maximum velocity Motion Magic® based control modes are allowed to use. More...
 
double MotionMagicAcceleration = 0
 This is the target acceleration Motion Magic® based control modes are allowed to use. More...
 
double MotionMagicJerk = 0
 This is the target jerk (acceleration derivative) Motion Magic® based control modes are allowed to use. 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::MotionMagicConfigs::Deserialize ( const std::string &  string)
inlinevirtual

◆ Serialize()

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

◆ ToString()

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

Member Data Documentation

◆ MotionMagicAcceleration

double ctre::phoenixpro::configs::MotionMagicConfigs::MotionMagicAcceleration = 0

This is the target acceleration Motion Magic® based control modes are allowed to use.

Minimum Value: 0 Maximum Value: 3.4e+38 Default Value: 0 Units: rot per sec²

◆ MotionMagicCruiseVelocity

double ctre::phoenixpro::configs::MotionMagicConfigs::MotionMagicCruiseVelocity = 0

This is the maximum velocity Motion Magic® based control modes are allowed to use.

Minimum Value: 0 Maximum Value: 3.4e+38 Default Value: 0 Units: rps

◆ MotionMagicJerk

double ctre::phoenixpro::configs::MotionMagicConfigs::MotionMagicJerk = 0

This is the target jerk (acceleration derivative) Motion Magic® based control modes are allowed to use.

This allows Motion Magic® support of S-Curves. If this is set to zero, then Motion Magic® will not apply a Jerk limit.

Minimum Value: 0 Maximum Value: 3.4e+38 Default Value: 0 Units: rot per sec³


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