mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 00:38:03 -06:00
Commit
This commit is contained in:
@@ -61,9 +61,9 @@ public class Shooter extends SubsystemBase {
|
||||
private ShooterMode mode = ShooterMode.NotReady;
|
||||
|
||||
public void setShooterReady() {
|
||||
if(this.mode == ShooterMode.NotReady) {
|
||||
this.mode = ShooterMode.Ready;
|
||||
}
|
||||
// if(this.mode == ShooterMode.NotReady) {
|
||||
this.mode = ShooterMode.Ready;
|
||||
// }
|
||||
}
|
||||
|
||||
public void setShooterNotReady() {
|
||||
@@ -95,6 +95,9 @@ public class Shooter extends SubsystemBase {
|
||||
double distanceToHub = robotPose2d.getTranslation().minus(FieldPositions.HUB_POSITION).getNorm();
|
||||
|
||||
|
||||
|
||||
this.mode = ShooterMode.Shooting;
|
||||
|
||||
// TODO: get if the robot is within the angle of the hub
|
||||
|
||||
// boolean driverError =
|
||||
|
||||
Reference in New Issue
Block a user