Package frc.robot.util.tunable
Class FlywheelConstants
java.lang.Object
frc.robot.util.tunable.FlywheelConstants
- All Implemented Interfaces:
Tunable,Cloneable,org.littletonrobotics.junction.inputs.LoggableInputs
public class FlywheelConstants
extends Object
implements org.littletonrobotics.junction.inputs.LoggableInputs, Cloneable, Tunable
Constants for shooter flywheel
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledoublebooleandoubledouble -
Constructor Summary
ConstructorsConstructorDescriptionFlywheelConstants(double holdCurrent, double maxDutyCycle, boolean isReversed, double velocityTolerance, double atSpeedDebounce) Create new Flywheel Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidfromLog(org.littletonrobotics.junction.LogTable table) voidifDirty(Consumer<FlywheelConstants> consumer) Run function with constants if they've changed.voidtoLog(org.littletonrobotics.junction.LogTable table)
-
Field Details
-
holdCurrent
public double holdCurrent -
maxDutyCycle
public double maxDutyCycle -
isReversed
public boolean isReversed -
velocityTolerance
public double velocityTolerance -
atSpeedDebounce
public double atSpeedDebounce
-
-
Constructor Details
-
FlywheelConstants
public FlywheelConstants(double holdCurrent, double maxDutyCycle, boolean isReversed, double velocityTolerance, double atSpeedDebounce) Create new Flywheel Constants
-
-
Method Details
-
ifDirty
Run function with constants if they've changed. -
toLog
public void toLog(org.littletonrobotics.junction.LogTable table) - Specified by:
toLogin interfaceorg.littletonrobotics.junction.inputs.LoggableInputs
-
fromLog
public void fromLog(org.littletonrobotics.junction.LogTable table) - Specified by:
fromLogin interfaceorg.littletonrobotics.junction.inputs.LoggableInputs
-