13
13
import static edu .wpi .first .wpilibj2 .command .Commands .*;
14
14
import static frc .team3128 .Constants .ShooterConstants .EDGE_FEED_ANGLE ;
15
15
import static frc .team3128 .Constants .ShooterConstants .EDGE_FEED_RPM ;
16
+ import static frc .team3128 .Constants .ShooterConstants .KICK_POWER ;
17
+ import static frc .team3128 .Constants .ShooterConstants .KICK_SHOOTING_POWER ;
16
18
import static frc .team3128 .Constants .ShooterConstants .MAX_RPM ;
17
19
import static frc .team3128 .Constants .ShooterConstants .MIDDLE_FEED_ANGLE ;
18
20
import static frc .team3128 .Constants .ShooterConstants .MIDDLE_FEED_RPM ;
21
+ import static frc .team3128 .Constants .HopperConstants .HOPPER_INTAKE_POWER ;
19
22
import static frc .team3128 .commands .CmdManager .*;
20
23
21
24
import org .photonvision .PhotonPoseEstimator .PoseStrategy ;
@@ -117,7 +120,7 @@ private void configureButtonBindings() {
117
120
118
121
controller .getButton (XboxButton .kA ).onTrue (Shooter .getInstance ().runShooter (0.8 ));
119
122
controller .getButton (XboxButton .kY ).onTrue (Shooter .getInstance ().runShooter (0 ));
120
- controller .getButton (XboxButton .kB ).onTrue (Shooter .getInstance ().runKickMotor (0.8 )).onFalse (Shooter .getInstance ().runKickMotor (0 ));
123
+ controller .getButton (XboxButton .kB ).onTrue (Shooter .getInstance ().runKickMotor (KICK_SHOOTING_POWER )).onFalse (Shooter .getInstance ().runKickMotor (0 ));
121
124
122
125
controller .getButton (XboxButton .kY ).whileTrue (ampUp ()).onFalse (ampFinAndDown ());
123
126
@@ -126,7 +129,7 @@ private void configureButtonBindings() {
126
129
127
130
new Trigger (()-> Shooter .getInstance ().getShooting ())
128
131
.onTrue (sequence (
129
- Shooter .getInstance ().runKickMotor (.5 ),
132
+ Shooter .getInstance ().runKickMotor (KICK_POWER ),
130
133
Hopper .getInstance ().runManipulator (.8 )
131
134
))
132
135
.onFalse (sequence (
@@ -141,7 +144,7 @@ private void configureButtonBindings() {
141
144
142
145
new Trigger (()-> Intake .getInstance ().getMeasurement () > 90 )
143
146
.and (()->!Hopper .getInstance ().hasObjectPresent ())
144
- .onTrue (Hopper .getInstance ().runManipulator (0.8 ))
147
+ .onTrue (Hopper .getInstance ().runManipulator (HOPPER_INTAKE_POWER ))
145
148
.onFalse (Hopper .getInstance ().runManipulator (0 ));
146
149
147
150
new Trigger (()-> Intake .getInstance ().getMeasurement () < 20 )
@@ -152,8 +155,8 @@ private void configureButtonBindings() {
152
155
.and (()->Hopper .getInstance ().hasObjectPresent ())
153
156
.and (() -> !Shooter .getInstance ().getShooting ())
154
157
.onTrue (sequence (
155
- Shooter .getInstance ().runKickMotor (0.5 ),
156
- Hopper .getInstance ().runManipulator (0.8 )
158
+ Shooter .getInstance ().runKickMotor (KICK_POWER ),
159
+ Hopper .getInstance ().runManipulator (HOPPER_INTAKE_POWER )
157
160
))
158
161
.onFalse (sequence (
159
162
Shooter .getInstance ().runKickMotor (-.1 ),
0 commit comments