Package edu.wpi.first.wpilibj.sysid
Class SysIdRoutineLog
java.lang.Object
edu.wpi.first.wpilibj.sysid.SysIdRoutineLog
- Direct Known Subclasses:
SysIdRoutine
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
Logs data from a single motor during a SysIdRoutine.static enum
Possible state of a SysId routine. -
Constructor Summary
ConstructorDescriptionSysIdRoutineLog
(String logName) Create a new logging utility for a SysId test routine. -
Method Summary
Modifier and TypeMethodDescriptionLog data from a motor during a SysId routine.void
recordState
(SysIdRoutineLog.State state) Records the current state of the SysId test routine.
-
Constructor Details
-
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.
-
-
Method Details
-
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
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.
-