Class AdjustableHoodSim
java.lang.Object
frc.robot.subsystems.adjustable_hood.AdjustableHoodSim
- All Implemented Interfaces:
AdjustableHoodIO
Simulation implementation of
AdjustableHoodIO.-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.robot.subsystems.adjustable_hood.AdjustableHoodIO
AdjustableHoodIO.AdjustableHoodInputs -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAdjustableHoodVoltage(double volts) voidsetTargetAngle(Angle angle) Commands the adjustable hood to move to a specific anglevoidUpdates the providedAdjustableHoodIO.AdjustableHoodInputsstructure with the latest sensor values.
-
Field Details
-
hood
-
-
Constructor Details
-
AdjustableHoodSim
public AdjustableHoodSim()
-
-
Method Details
-
updateInputs
Description copied from interface:AdjustableHoodIOUpdates the providedAdjustableHoodIO.AdjustableHoodInputsstructure with the latest sensor values.- Specified by:
updateInputsin interfaceAdjustableHoodIO- Parameters:
inputs- updates inputs
-
setAdjustableHoodVoltage
public void setAdjustableHoodVoltage(double volts) - Specified by:
setAdjustableHoodVoltagein interfaceAdjustableHoodIO
-
setTargetAngle
Description copied from interface:AdjustableHoodIOCommands the adjustable hood to move to a specific angle- Specified by:
setTargetAnglein interfaceAdjustableHoodIO- Parameters:
angle- - the wanted angle
-