11#include "wpi/units/acceleration.hpp"
12#include "wpi/units/angle.hpp"
13#include "wpi/units/angular_acceleration.hpp"
14#include "wpi/units/angular_velocity.hpp"
15#include "wpi/units/current.hpp"
16#include "wpi/units/length.hpp"
17#include "wpi/units/velocity.hpp"
18#include "wpi/units/voltage.hpp"
160 MotorLog(std::string_view motorName, std::string_view logName,
161 LogEntries* logEntries);
162 std::string m_motorName;
163 std::string m_logName;
164 LogEntries* m_logEntries;
197 LogEntries m_logEntries;
198 std::string m_logName;
199 bool m_stateInitialized =
false;
@ name
Definition base.h:690
Log string values.
Definition DataLog.hpp:849
Logs data from a single motor during a SysIdRoutine.
Definition SysIdRoutineLog.hpp:49
MotorLog & position(wpi::units::meter_t position)
Log the linear position of the motor.
Definition SysIdRoutineLog.hpp:77
MotorLog & acceleration(wpi::units::turns_per_second_squared_t acceleration)
Log the angular acceleration of the motor.
Definition SysIdRoutineLog.hpp:132
MotorLog & current(wpi::units::ampere_t current)
Log the current applied to the motor.
Definition SysIdRoutineLog.hpp:145
friend class SysIdRoutineLog
Definition SysIdRoutineLog.hpp:150
MotorLog & velocity(wpi::units::meters_per_second_t velocity)
Log the linear velocity of the motor.
Definition SysIdRoutineLog.hpp:97
MotorLog & voltage(wpi::units::volt_t voltage)
Log the voltage applied to the motor.
Definition SysIdRoutineLog.hpp:67
MotorLog & velocity(wpi::units::turns_per_second_t velocity)
Log the angular velocity of the motor.
Definition SysIdRoutineLog.hpp:107
MotorLog & value(std::string_view name, double value, std::string_view unit)
Log a generic data value from the motor.
MotorLog & acceleration(wpi::units::meters_per_second_squared_t acceleration)
Log the linear acceleration of the motor.
Definition SysIdRoutineLog.hpp:119
MotorLog & position(wpi::units::turn_t position)
Log the angular position of the motor.
Definition SysIdRoutineLog.hpp:87
MotorLog Motor(std::string_view motorName)
Log data from a motor during a SysId routine.
static std::string StateEnumToString(State state)
SysIdRoutineLog(std::string_view logName)
Create a new logging utility for a SysId test routine.
void RecordState(State state)
Records the current state of the SysId test routine.
StringMap is a sorted associative container that contains key-value pairs with unique string keys.
Definition StringMap.hpp:26
Definition SysIdRoutineLog.hpp:20
State
Possible state of a SysId routine.
Definition SysIdRoutineLog.hpp:25
@ kNone
No test.
Definition SysIdRoutineLog.hpp:35
@ kQuasistaticForward
Quasistatic forward test.
Definition SysIdRoutineLog.hpp:27
@ kDynamicReverse
Dynamic reverse test.
Definition SysIdRoutineLog.hpp:33
@ kDynamicForward
Dynamic forward test.
Definition SysIdRoutineLog.hpp:31
@ kQuasistaticReverse
Quasistatic reverse test.
Definition SysIdRoutineLog.hpp:29