Package edu.wpi.first.wpilibj.sysid
Class SysIdRoutineLog.MotorLog
java.lang.Object
edu.wpi.first.wpilibj.sysid.SysIdRoutineLog.MotorLog
- Enclosing class:
- SysIdRoutineLog
Logs data from a single motor during a SysIdRoutine.
-
Method Summary
Modifier and TypeMethodDescriptionangularAcceleration
(AngularAcceleration acceleration) Log the angular acceleration of the motor.angularPosition
(Angle position) Log the angular position of the motor.angularVelocity
(AngularVelocity velocity) Log the angular velocity of the motor.Log the current applied to the motor.linearAcceleration
(LinearAcceleration acceleration) Log the linear acceleration of the motor.linearPosition
(Distance position) Log the linear position of the motor.linearVelocity
(LinearVelocity velocity) Log the linear velocity of the motor.Log a generic data value from the motor.Log the voltage applied to the motor.
-
Method Details
-
value
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).
-