-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRampMaxRPM.java
More file actions
47 lines (37 loc) · 1.19 KB
/
RampMaxRPM.java
File metadata and controls
47 lines (37 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package org.carlmontrobotics.commands;
import static org.carlmontrobotics.Constants.Effectorc.*;
import org.carlmontrobotics.subsystems.Arm;
import org.carlmontrobotics.subsystems.IntakeShooter;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.Command;
// TODO: where do we use this command?
public class RampMaxRPM extends Command {
// intake until sees game peice or 4sec has passed
private final IntakeShooter intake;
private boolean babyMode;
private Timer timer;
public RampMaxRPM(IntakeShooter intake) {
addRequirements(this.intake = intake);
}
@Override
public void initialize() {
babyMode = SmartDashboard.getBoolean("babymode", false);
intake.setMaxOuttake(1);
}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
}
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {
intake.stopOuttake();
// resets to defaultColor
}
// Returns true when the command should end.
@Override
public boolean isFinished() {
return false; // || babyMode;
}
}