Class LibShooterDescriptor
java.lang.Object
com.flarerobotics.lib.control.shooter.data.LibShooterDescriptor
A descriptor for a shooter subsystem, containing all the necessary parameters to calculate
the angle and RPM of the shooter, given environmental factors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for ShooterDescriptor paramters. -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
edu.wpi.first.math.system.plant.DCMotor
double
Returns the hopper delay, defined as the time it takes the game piece from the hopper to being launched, not including the spin-up time.double
double
double
double
int
double
double
double
double
edu.wpi.first.math.interpolation.InterpolatingDoubleTreeMap
-
Method Details
-
getPivotHeight
public double getPivotHeight() -
getRollerRadius
public double getRollerRadius() -
getRollerMOI
public double getRollerMOI() -
getGearbox
public edu.wpi.first.math.system.plant.DCMotor getGearbox() -
getRollerReduction
public double getRollerReduction() -
getNumMotors
public int getNumMotors() -
getMaxRPM
public double getMaxRPM() -
getMinAngle
public double getMinAngle() -
getMaxAngle
public double getMaxAngle() -
getFlywheelMOI
public double getFlywheelMOI() -
getFlywheelToShooterReduction
public double getFlywheelToShooterReduction() -
getHopperDelay
public double getHopperDelay()Returns the hopper delay, defined as the time it takes the game piece from the hopper to being launched, not including the spin-up time.- Returns:
- The delay.
-
getNominalVoltage
public double getNominalVoltage() -
getAngleInterpolator
-
getRPMInterpolator
-
getWindupTimes
public edu.wpi.first.math.interpolation.InterpolatingDoubleTreeMap getWindupTimes()
-