Class SysIdRoutine.Config

java.lang.Object
edu.wpi.first.wpilibj2.command.sysid.SysIdRoutine.Config
Enclosing class:
SysIdRoutine

public static class SysIdRoutine.Config
extends Object
Hardware-independent configuration for a SysId test routine.
  • Field Details

  • Constructor Details

    • Config

      public Config​(Measure<Velocity<Voltage>> rampRate, Measure<Voltage> stepVoltage, Measure<Time> timeout, Consumer<SysIdRoutineLog.State> recordState)
      Create a new configuration for a SysId test routine.
      Parameters:
      rampRate - The voltage ramp rate used for quasistatic test routines. Defaults to 1 volt per second if left null.
      stepVoltage - The step voltage output used for dynamic test routines. Defaults to 7 volts if left null.
      timeout - Safety timeout for the test routine commands. Defaults to 10 seconds if left null.
      recordState - Optional handle for recording test state in a third-party logging solution. If provided, the test routine state will be passed to this callback instead of logged in WPILog.
    • Config

      public Config​(Measure<Velocity<Voltage>> rampRate, Measure<Voltage> stepVoltage, Measure<Time> timeout)
      Create a new configuration for a SysId test routine.
      Parameters:
      rampRate - The voltage ramp rate used for quasistatic test routines. Defaults to 1 volt per second if left null.
      stepVoltage - The step voltage output used for dynamic test routines. Defaults to 7 volts if left null.
      timeout - Safety timeout for the test routine commands. Defaults to 10 seconds if left null.
    • Config

      public Config()
      Create a default configuration for a SysId test routine with all default settings.

      rampRate: 1 volt/sec

      stepVoltage: 7 volts

      timeout: 10 seconds