Class SysIdRoutineLog.MotorLog

java.lang.Object
edu.wpi.first.wpilibj.sysid.SysIdRoutineLog.MotorLog
Enclosing class:
SysIdRoutineLog

public final class SysIdRoutineLog.MotorLog extends Object
Logs data from a single motor during a SysIdRoutine.
  • Method Details

    • value

      public SysIdRoutineLog.MotorLog value(String name, double value, String unit)
      Log a generic data value from the motor.
      Parameters:
      name - The name of the data field being recorded.
      value - The numeric value of the data field.
      unit - The unit string of the data field.
      Returns:
      The motor log (for call chaining).
    • voltage

      Log the voltage applied to the motor.
      Parameters:
      voltage - The voltage to record.
      Returns:
      The motor log (for call chaining).
    • linearPosition

      Log the linear position of the motor.
      Parameters:
      position - The linear position to record.
      Returns:
      The motor log (for call chaining).
    • angularPosition

      Log the angular position of the motor.
      Parameters:
      position - The angular position to record.
      Returns:
      The motor log (for call chaining).
    • linearVelocity

      Log the linear velocity of the motor.
      Parameters:
      velocity - The linear velocity to record.
      Returns:
      The motor log (for call chaining).
    • angularVelocity

      Log the angular velocity of the motor.
      Parameters:
      velocity - The angular velocity to record.
      Returns:
      The motor log (for call chaining).
    • linearAcceleration

      Log the linear acceleration of the motor.

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

      Parameters:
      acceleration - The linear acceleration to record.
      Returns:
      The motor log (for call chaining).
    • angularAcceleration

      Log the angular acceleration of the motor.

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

      Parameters:
      acceleration - The angular acceleration to record.
      Returns:
      The motor log (for call chaining).
    • current

      Log the current applied to the motor.

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

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