Class FtcShooter.Params

java.lang.Object
ftclib.subsystem.FtcShooter.Params
Enclosing class:
FtcShooter

public static class FtcShooter.Params extends Object
This class contains all the parameters related to the shooter.
  • Field Details

  • Constructor Details

    • Params

      public Params()
  • Method Details

    • toString

      @NonNull public String toString()
      This method returns the string format of the Params info.
      Overrides:
      toString in class Object
      Returns:
      string format of the params info.
    • setShooterMotor1

      public FtcShooter.Params setShooterMotor1(String name, FtcMotorActuator.MotorType motorType, boolean inverted)
      This method sets the parameters of the shooter motor 1.
      Parameters:
      name - specifies the name of the motor.
      motorType - specifies the motor type.
      inverted - specifies true to invert the motor direction, false otherwise.
      Returns:
      this object for chaining.
    • setShooterMotor2

      public FtcShooter.Params setShooterMotor2(String name, FtcMotorActuator.MotorType motorType, boolean inverted)
      This method sets the parameters of the shooter motor 2.
      Parameters:
      name - specifies the name of the motor.
      motorType - specifies the motor type.
      inverted - specifies true to invert the motor direction, false otherwise.
      Returns:
      this object for chaining.
    • setTiltMotor

      public FtcShooter.Params setTiltMotor(String name, FtcMotorActuator.MotorType motorType, boolean inverted, TrcShooter.PanTiltParams tiltParams)
      This method sets the parameters of tilt if there is one.
      Parameters:
      name - specifies the name of the motor.
      motorType - specifies the motor type.
      inverted - specifies true to invert the motor direction, false otherwise.
      tiltParams - specifies tilt parameters.
      Returns:
      this object for chaining.
    • setPanMotor

      public FtcShooter.Params setPanMotor(String name, FtcMotorActuator.MotorType motorType, boolean inverted, TrcShooter.PanTiltParams panParams)
      This method sets the parameters of pan if there is one.
      Parameters:
      name - specifies the name of the motor.
      motorType - specifies the motor type.
      inverted - specifies true to invert the motor direction, false otherwise.
      panParams - specifies pan parameters.
      Returns:
      this object for chaining.