mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 08:48:05 -06:00
Drive input orientation
This commit is contained in:
@@ -62,7 +62,7 @@ public class Shooter extends SubsystemBase {
|
||||
|
||||
public void setShooterReady() {
|
||||
// if(this.mode == ShooterMode.NotReady) {
|
||||
this.mode = ShooterMode.Ready;
|
||||
this.mode = ShooterMode.Shooting;
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ public class Shooter extends SubsystemBase {
|
||||
|
||||
|
||||
|
||||
this.mode = ShooterMode.Shooting;
|
||||
// this.mode = ShooterMode.Shooting;
|
||||
|
||||
// TODO: get if the robot is within the angle of the hub
|
||||
|
||||
@@ -147,7 +147,8 @@ public class Shooter extends SubsystemBase {
|
||||
// ShooterMode.NotReady
|
||||
// );
|
||||
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
switch (mode) {
|
||||
case Shooting:
|
||||
@@ -165,4 +166,4 @@ public class Shooter extends SubsystemBase {
|
||||
}
|
||||
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
||||
@@ -24,10 +24,10 @@ public class ShooterConstants {
|
||||
// public static final AngularVelocity INDEXER_ACTIVE_VELOCITY = RotationsPerSecond.of(10);
|
||||
// public static final AngularVelocity INDEXER_INACTIVE_VELOCITY = RotationsPerSecond.of(0.0);
|
||||
|
||||
public static final ConfigurableDouble SHOOTER_ACTIVE_VELOCITY = new ConfigurableDouble("Shooter Active Velocity", 0);
|
||||
public static final ConfigurableDouble SHOOTER_RESTING_VELOCITY = new ConfigurableDouble("Shooter Resting Velocity", 0);
|
||||
public static final ConfigurableDouble SHOOTER_ACTIVE_VELOCITY = new ConfigurableDouble("Shooter Active Velocity", -35);
|
||||
public static final ConfigurableDouble SHOOTER_RESTING_VELOCITY = new ConfigurableDouble("Shooter Resting Velocity", -10);
|
||||
|
||||
public static final ConfigurableDouble INDEXER_FORWARD_VELOCITY = new ConfigurableDouble("Indexer FWD Velocity", 10);
|
||||
public static final ConfigurableDouble INDEXER_FORWARD_VELOCITY = new ConfigurableDouble("Indexer FWD Velocity", -10);
|
||||
public static final ConfigurableDouble INDEXER_REVERSE_VELOCITY = new ConfigurableDouble("Indexer reverse Velocity", 10);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user