We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ce7eef commit feae225Copy full SHA for feae225
src/main/java/frc/robot/shooter/commands/VisionShooter.java
@@ -7,6 +7,7 @@
7
import frc.lib.control.DCMotor;
8
import frc.lib.control.PIDController;
9
import frc.robot.shooter.Shooter;
10
+import frc.robot.status.Status;
11
import frc.robot.vision.Limelight;
12
13
public class VisionShooter extends CommandBase {
@@ -70,6 +71,16 @@ void controller() {
70
71
lastTime = time;
72
}
73
74
+ @Override
75
+ public void execute() {
76
+ double targetDelta = rpm - velocity;
77
+
78
+ if ((Math.abs(targetDelta) < 20) && !closeToTarget) {
79
+ closeToTarget = true;
80
+ Status.getInstance().fillLEDs();
81
+ }
82
83
84
@Override
85
public void end(boolean interrupted) {
86
controller.stop();
0 commit comments