2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
argos_lib::status_frame_config Namespace Reference

Enumerations

enum class  MotorPresetMode {
  Basic , BasicFX , Leader , LeaderFX ,
  Follower , FollowerFX , MotionProfiling , MotionProfilingFX ,
  Tuning , TuningFX
}
 Motor mode used for setting status frame update periods. More...
 

Functions

void SetMotorStatusFrameRates (BaseTalon &motor, MotorPresetMode motorMode)
 Set motor controller status frame update periods based on the motor preset.
 

Enumeration Type Documentation

◆ MotorPresetMode

Motor mode used for setting status frame update periods.

Enumerator
Basic 

Baseline SRX, slow sensor reporting rate.

BasicFX 

Baseline FX, slow sensor reporting rate.

Leader 

SRX leader, fast reporting rate.

LeaderFX 

FX leader, fast reporting rate.

Follower 

SRX follower, near zero reporting rates.

FollowerFX 

FX follower, near zero reporting rates.

MotionProfiling 

SRX with motion profiling enabled.

MotionProfilingFX 

FX with motion profiling enabled.

Tuning 

SRX with increased reporting frequency to aid PID tuning.

TuningFX 

FX with increased reporting frequency to aid PID tuning.

Function Documentation

◆ SetMotorStatusFrameRates()

void argos_lib::status_frame_config::SetMotorStatusFrameRates ( BaseTalon &  motor,
MotorPresetMode  motorMode 
)

Set motor controller status frame update periods based on the motor preset.

Parameters
motorMotor controller to configure
motorModePreset mode to use