Package ftclib.subsystem
Class FtcShooter.Params
java.lang.Object
ftclib.subsystem.FtcShooter.Params
- Enclosing class:
- FtcShooter
This class contains all the parameters related to the shooter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FtcMotorActuator.Params
private TrcShooter.PanTiltParams
private FtcMotorActuator.Params
private FtcMotorActuator.Params
private FtcMotorActuator.Params
private TrcShooter.PanTiltParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetPanMotor
(String name, FtcMotorActuator.MotorType motorType, boolean inverted, TrcShooter.PanTiltParams panParams) This method sets the parameters of pan if there is one.setShooterMotor1
(String name, FtcMotorActuator.MotorType motorType, boolean inverted) This method sets the parameters of the shooter motor 1.setShooterMotor2
(String name, FtcMotorActuator.MotorType motorType, boolean inverted) This method sets the parameters of the shooter motor 2.setTiltMotor
(String name, FtcMotorActuator.MotorType motorType, boolean inverted, TrcShooter.PanTiltParams tiltParams) This method sets the parameters of tilt if there is one.toString()
This method returns the string format of the Params info.
-
Field Details
-
shooterMotor1Params
-
shooterMotor2Params
-
tiltMotorParams
-
tiltParams
-
panMotorParams
-
panParams
-
-
Constructor Details
-
Params
public Params()
-
-
Method Details
-
toString
This method returns the 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.
-