Package robot.subsystems
Class ShooterSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
robot.subsystems.MotorSubsystem
robot.subsystems.ShooterSubsystem
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic final ShooterSubsystem.Hubstatic final doublestatic final doublestatic final doublestatic final doublestatic final ShooterSubsystem.Hubstatic final doublestatic final doublestatic final edu.wpi.first.math.geometry.Translation3dstatic doubleFields inherited from class robot.subsystems.MotorSubsystem
backwardVoltage, forwardVoltage, motors -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandc_controlVelocity(DoubleSupplier getVelocity) edu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandstatic edu.wpi.first.wpilibj2.command.CommandbooleancanShoot()static ShooterSubsystem.Hubstatic doublegetShooterVelocityForDistance(double dist) voidperiodic()Methods inherited from class robot.subsystems.MotorSubsystem
c_backward, c_controlVoltage, c_DEBUG_tunePIDkG, c_forward, c_holdVoltage, c_stop, setMotorBrake, setVoltage, stopMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
ACCOUNT_FOR_ROBOT_VEL
public static boolean ACCOUNT_FOR_ROBOT_VEL -
VELOCITY_MULT
public static double VELOCITY_MULT -
GRAVITY
public static final double GRAVITY- See Also:
-
FLYWHEEL_CIRC
public static final double FLYWHEEL_CIRC -
SHOOTER_ANGLE
public static final double SHOOTER_ANGLE -
SHOOTER_POS
public static final edu.wpi.first.math.geometry.Translation3d SHOOTER_POS -
BLUE_LONG_SHOOT_X
public static final double BLUE_LONG_SHOOT_X- See Also:
-
RED_LONG_SHOOT_X
public static final double RED_LONG_SHOOT_X- See Also:
-
HUB_HEIGHT
public static final double HUB_HEIGHT- See Also:
-
BLUE_HUB
-
RED_HUB
-
-
Constructor Details
-
ShooterSubsystem
-
-
Method Details
-
getOwnHub
-
c_basicShoot
public edu.wpi.first.wpilibj2.command.Command c_basicShoot() -
c_controlVelocity
-
canShoot
public boolean canShoot() -
c_smartShoot
public edu.wpi.first.wpilibj2.command.Command c_smartShoot() -
c_smartShootAlign
public static edu.wpi.first.wpilibj2.command.Command c_smartShootAlign() -
c_longShoot
public edu.wpi.first.wpilibj2.command.Command c_longShoot() -
c_longShootAlign
public edu.wpi.first.wpilibj2.command.Command c_longShootAlign() -
getShooterVelocityForDistance
public static double getShooterVelocityForDistance(double dist) -
periodic
public void periodic()
-