Package frclib.motor

Class FrcPWMSparkMax

java.lang.Object
trclib.motor.TrcMotor
frclib.motor.FrcPWMMotorController<edu.wpi.first.wpilibj.motorcontrol.PWMSparkMax>
frclib.motor.FrcPWMSparkMax
All Implemented Interfaces:
TrcMotorController, TrcExclusiveSubsystem, TrcOdometrySensor

public class FrcPWMSparkMax extends FrcPWMMotorController<edu.wpi.first.wpilibj.motorcontrol.PWMSparkMax>
  • Constructor Details

    • FrcPWMSparkMax

      public FrcPWMSparkMax(String instanceName, int pwmChannel, TrcMotor.ExternalSensors sensors)
      Constructor: Create an instance of the object.
      Parameters:
      instanceName - specifies the instance name.
      pwmChannel - specifies the PWM channel number of the motor.
      sensors - specifies external sensors, can be null if none.
    • FrcPWMSparkMax

      public FrcPWMSparkMax(String instanceName, int pwmChannel)
      Constructor: Create an instance of the object.
      Parameters:
      instanceName - specifies the instance name.
      pwmChannel - specifies the PWM channel number of the motor.