File tree Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Expand file tree Collapse file tree 3 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ public static final class IntakeArm{ //TODO: This must be tuned to specific robo
54
54
public static final double startingValue = 0 ;
55
55
public static final double zeroEncoderValue = 0 ;
56
56
public static final double intakeArmSpeed = 0 ;
57
+ public static final double intakeSetPoint = 0 ;
58
+ public static final double trapSetPoint = 0 ;
57
59
// switch
58
60
public static final int switchID = 0 ;
59
61
@@ -322,6 +324,7 @@ public static class FeederConstants{
322
324
public static final double FeederMotorSpeed = 0.8 ;
323
325
public static final double getNoteSpeed = 0 ;
324
326
327
+
325
328
}
326
329
327
330
public static class TrapArmConstants {
Original file line number Diff line number Diff line change 10
10
// NOTE: Consider using this command inline, rather than writing a subclass. For more
11
11
// information, see:
12
12
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
13
- public class SetSpeed extends InstantCommand {
13
+ public class IntakeArmSetSpeed extends InstantCommand {
14
14
private final IntakeArmSubsystem intakeArm = IntakeArmSubsystem .getInstance ();
15
15
private double speed ;
16
- public SetSpeed (double speed ) {
16
+ public IntakeArmSetSpeed (double speed ) {
17
17
// Use addRequirements() here to declare subsystem dependencies.
18
18
this .speed = speed ;
19
19
}
Original file line number Diff line number Diff line change
1
+ // Copyright (c) FIRST and other WPILib contributors.
2
+ // Open Source Software; you can modify and/or share it under the terms of
3
+ // the WPILib BSD license file in the root directory of this project.
4
+
5
+ package frc .robot .commands .feederCommands ;
6
+
7
+ import edu .wpi .first .wpilibj2 .command .SequentialCommandGroup ;
8
+ import frc .robot .commands .IntakeArmCommands .MoveIntakeArmToDegree ;
9
+ import frc .robot .commands .IntakeCommands .CollectToFeeder ;
10
+ import frc .robot .commands .IntakeCommands .IntakeSetSpeed ;
11
+ import static frc .robot .Constants .IntakeArm .*;
12
+
13
+ // NOTE: Consider using this command inline, rather than writing a subclass. For more
14
+ // information, see:
15
+ // https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
16
+ public class FeederIntakeCommandGroup extends SequentialCommandGroup {
17
+
18
+ /** Creates a new FeederIntakeCommandGroup. */
19
+
20
+ public FeederIntakeCommandGroup () {
21
+ // Add your commands in the addCommands() call, e.g.
22
+ // addCommands(new FooCommand(), new BarCommand());
23
+ addCommands (
24
+ new MoveIntakeArmToDegree (intakeSetPoint ),
25
+ new CollectToFeeder (),
26
+ new IntakeSetSpeed (0 ),
27
+ new MoveIntakeArmToDegree (trapSetPoint ));
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments