WPILibC++ 2025.0.0-alpha-1-10-g1ccd8d1
frc::sysid::SysIdRoutineLog::MotorLog Class Reference

Logs data from a single motor during a SysIdRoutine. More...

#include <frc/sysid/SysIdRoutineLog.h>

Public Member Functions

MotorLogvalue (std::string_view name, double value, std::string_view unit)
 Log a generic data value from the motor. More...
 
MotorLogvoltage (units::volt_t voltage)
 Log the voltage applied to the motor. More...
 
MotorLogposition (units::meter_t position)
 Log the linear position of the motor. More...
 
MotorLogposition (units::turn_t position)
 Log the angular position of the motor. More...
 
MotorLogvelocity (units::meters_per_second_t velocity)
 Log the linear velocity of the motor. More...
 
MotorLogvelocity (units::turns_per_second_t velocity)
 Log the angular velocity of the motor. More...
 
MotorLogacceleration (units::meters_per_second_squared_t acceleration)
 Log the linear acceleration of the motor. More...
 
MotorLogacceleration (units::turns_per_second_squared_t acceleration)
 Log the angular acceleration of the motor. More...
 
MotorLogcurrent (units::ampere_t current)
 Log the current applied to the motor. More...
 

Friends

class SysIdRoutineLog
 

Detailed Description

Logs data from a single motor during a SysIdRoutine.

Member Function Documentation

◆ acceleration() [1/2]

MotorLog & frc::sysid::SysIdRoutineLog::MotorLog::acceleration ( units::meters_per_second_squared_t  acceleration)
inline

Log the linear acceleration of the motor.

This is optional; SysId can perform an accurate fit without it.

Parameters
accelerationThe linear acceleration to record.
Returns
The motor log (for call chaining).

◆ acceleration() [2/2]

MotorLog & frc::sysid::SysIdRoutineLog::MotorLog::acceleration ( units::turns_per_second_squared_t  acceleration)
inline

Log the angular acceleration of the motor.

This is optional; SysId can perform an accurate fit without it.

Parameters
accelerationThe angular acceleration to record.
Returns
The motor log (for call chaining).

◆ current()

MotorLog & frc::sysid::SysIdRoutineLog::MotorLog::current ( units::ampere_t  current)
inline

Log the current applied to the motor.

This is optional; SysId can perform an accurate fit without it.

Parameters
currentThe current to record.
Returns
The motor log (for call chaining).

◆ position() [1/2]

MotorLog & frc::sysid::SysIdRoutineLog::MotorLog::position ( units::meter_t  position)
inline

Log the linear position of the motor.

Parameters
positionThe linear position to record.
Returns
The motor log (for call chaining).

◆ position() [2/2]

MotorLog & frc::sysid::SysIdRoutineLog::MotorLog::position ( units::turn_t  position)
inline

Log the angular position of the motor.

Parameters
positionThe angular position to record.
Returns
The motor log (for call chaining).

◆ value()

MotorLog & frc::sysid::SysIdRoutineLog::MotorLog::value ( std::string_view  name,
double  value,
std::string_view  unit 
)

Log a generic data value from the motor.

Parameters
nameThe name of the data field being recorded.
valueThe numeric value of the data field.
unitThe unit string of the data field.
Returns
The motor log (for call chaining).

◆ velocity() [1/2]

MotorLog & frc::sysid::SysIdRoutineLog::MotorLog::velocity ( units::meters_per_second_t  velocity)
inline

Log the linear velocity of the motor.

Parameters
velocityThe linear velocity to record.
Returns
The motor log (for call chaining).

◆ velocity() [2/2]

MotorLog & frc::sysid::SysIdRoutineLog::MotorLog::velocity ( units::turns_per_second_t  velocity)
inline

Log the angular velocity of the motor.

Parameters
velocityThe angular velocity to record.
Returns
The motor log (for call chaining).

◆ voltage()

MotorLog & frc::sysid::SysIdRoutineLog::MotorLog::voltage ( units::volt_t  voltage)
inline

Log the voltage applied to the motor.

Parameters
voltageThe voltage to record.
Returns
The motor log (for call chaining).

Friends And Related Function Documentation

◆ SysIdRoutineLog

friend class SysIdRoutineLog
friend

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