160 std::string m_motorName;
161 std::string m_logName;
196 std::string m_logName;
197 bool m_stateInitialized =
false;
Logs data from a single motor during a SysIdRoutine.
Definition: SysIdRoutineLog.h:49
MotorLog & acceleration(units::meters_per_second_squared_t acceleration)
Log the linear acceleration of the motor.
Definition: SysIdRoutineLog.h:119
MotorLog & acceleration(units::turns_per_second_squared_t acceleration)
Log the angular acceleration of the motor.
Definition: SysIdRoutineLog.h:131
MotorLog & current(units::ampere_t current)
Log the current applied to the motor.
Definition: SysIdRoutineLog.h:143
MotorLog & velocity(units::turns_per_second_t velocity)
Log the angular velocity of the motor.
Definition: SysIdRoutineLog.h:107
MotorLog & value(std::string_view name, double value, std::string_view unit)
Log a generic data value from the motor.
MotorLog & position(units::meter_t position)
Log the linear position of the motor.
Definition: SysIdRoutineLog.h:77
MotorLog & position(units::turn_t position)
Log the angular position of the motor.
Definition: SysIdRoutineLog.h:87
MotorLog & velocity(units::meters_per_second_t velocity)
Log the linear velocity of the motor.
Definition: SysIdRoutineLog.h:97
MotorLog & voltage(units::volt_t voltage)
Log the voltage applied to the motor.
Definition: SysIdRoutineLog.h:67
Utility for logging data from a SysId test routine.
Definition: SysIdRoutineLog.h:43
static std::string StateEnumToString(State state)
MotorLog Motor(std::string_view motorName)
Log data from a motor during a SysId routine.
void RecordState(State state)
Records the current state of the SysId test routine.
SysIdRoutineLog(std::string_view logName)
Create a new logging utility for a SysId test routine.
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
Definition: StringMap.h:116
Log string values.
Definition: DataLog.h:704
basic_string_view< char > string_view
Definition: core.h:501
state
Definition: core.h:2271
Definition: SysIdRoutineLog.h:20
State
Possible state of a SysId routine.
Definition: SysIdRoutineLog.h:25
@ kQuasistaticForward
Quasistatic forward test.
@ kDynamicReverse
Dynamic reverse test.
@ kDynamicForward
Dynamic forward test.
@ kQuasistaticReverse
Quasistatic reverse test.
Type representing an arbitrary unit.
Definition: base.h:884