Utility for logging data from a SysId test routine.
More...
#include <frc/sysid/SysIdRoutineLog.h>
|
class | MotorLog |
| Logs data from a single motor during a SysIdRoutine. More...
|
|
Utility for logging data from a SysId test routine.
Each complete routine (quasistatic and dynamic, forward and reverse) should have its own SysIdRoutineLog instance, with a unique log name.
◆ SysIdRoutineLog()
Create a new logging utility for a SysId test routine.
- Parameters
-
logName | The name for the test routine in the log. Should be unique between complete test routines (quasistatic and dynamic, forward and reverse). The current state of this test (e.g. "quasistatic-forward") will appear in WPILog under the "sysid-test-state-logName" entry. |
◆ Motor()
Log data from a motor during a SysId routine.
- Parameters
-
motorName | The name of the motor. |
- Returns
- Handle with chainable callbacks to log individual data fields.
◆ RecordState()
void frc::sysid::SysIdRoutineLog::RecordState |
( |
State |
state | ) |
|
Records the current state of the SysId test routine.
Should be called once per iteration during tests with the type of the current test, and once upon test end with state none
.
- Parameters
-
state | The current state of the SysId test routine. |
◆ StateEnumToString()
static std::string frc::sysid::SysIdRoutineLog::StateEnumToString |
( |
State |
state | ) |
|
|
static |
The documentation for this class was generated from the following file: