Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main/java/frc/robot/commands/states/None.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.RobotContainer;
import frc.robot.constants.ConstMotion;
import frc.robot.constants.ConstRotors;
import frc.robot.subsystems.*;

/* You should consider using the more terse Command factories API instead https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands */
Expand All @@ -22,6 +24,11 @@ public None() {
@Override
public void initialize() {
RobotContainer.stateMachineInstance.setRobotState(StateMachine.RobotState.NONE);
RobotContainer.rotorsInstance.setFlywheelPercentOutput(ConstRotors.STOP);
RobotContainer.rotorsInstance.setSerializerRollersPercentOutput(ConstRotors.STOP);
RobotContainer.rotorsInstance.setTransferRollersPercentOutput(ConstRotors.STOP);
RobotContainer.rotorsInstance.setIntakeRollersPercentOutput(ConstRotors.STOP);
RobotContainer.motionInstance.setHoodPivotAngle(ConstMotion.HOOD_NONE_ANGLE);
}

// Called every time the scheduler runs while the command is scheduled.
Expand Down
1 change: 1 addition & 0 deletions src/main/java/frc/robot/constants/ConstMotion.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class ConstMotion {
public static final Angle INTAKE_PIVOT_RETRACT = Degrees.of(0);
public static final Angle HOOD_PIVOT_ANGLE = Degrees.of(14);
public static final double STOP = 0;
public static final Angle HOOD_NONE_ANGLE = Degrees.of(0);

static {

Expand Down
Loading