Skip to content

Commit

Permalink
command group wating fot yair code
Browse files Browse the repository at this point in the history
  • Loading branch information
eilonhuppert committed Jan 21, 2024
1 parent 060a58c commit f171a17
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public static final class IntakeArm{ //TODO: This must be tuned to specific robo
public static final double startingValue = 0;
public static final double zeroEncoderValue = 0;
public static final double intakeArmSpeed = 0;
public static final double intakeDegree = 0;
public static final double feederDegree = 0;
// switch
public static final int switchID = 0;

Expand Down Expand Up @@ -309,6 +311,7 @@ public static class FeederConstants{
public static final int FeederMotorId = 3;
public static final double FeederMotorSpeed = 0.8;


}
public static class TrapArmConstants{
public static final int ArmMotorID = 10;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

package frc.robot.commands.feederCommands;

import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.commands.IntakeArmCommands.MoveIntakeArmToDegree;
import frc.robot.subsystems.FeederSubsystem;
import frc.robot.subsystems.IntakeArmSubsystem;
import static frc.robot.Constants.IntakeArm.*;
import static frc.robot.Constants. FeederConstants.*;

// NOTE: Consider using this command inline, rather than writing a subclass. For more
// information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
public class FeederIntakeCommandGroup extends SequentialCommandGroup {

/** Creates a new FeederIntakeCommandGroup. */
private static IntakeArmSubsystem intakeArmSubsystem = IntakeArmSubsystem.getInstance();
private static FeederSubsystem feederSubsystem = FeederSubsystem.getInstance();


public FeederIntakeCommandGroup() {
addRequirements(intakeArmSubsystem);
addRequirements(feederSubsystem);
// Add your commands in the addCommands() call, e.g.
// addCommands(new FooCommand(), new BarCommand());
addCommands(new MoveIntakeArmToDegree(intakeDegree),new MoveIntakeArmToDegree(feederDegree) ,new FeederSetSpeed(FeederMotorSpeed)); // wating fot yair code for intake
}
}

0 comments on commit f171a17

Please sign in to comment.