shooterVelocityMap.put(0.0, 9.0);
shooterVelocityMap.put(4.0, 12.8);
shooterVelocityMap.put(7.6, 19.0);
+ shooterVelocityMap.put(11.2, 25.2);
// always shoot at low angle to ground.
newHoodMap.put(0.0, 60.0);
newHoodMap.put(27.99, 60.0);
+
}
}
private boolean flippy = true;
- public void setColor() {
- var alliance = DriverStation.getAlliance();
- if (alliance.isEmpty()) {
- color = Color.kWhite;
- } else if (alliance.get() == Alliance.Red) {
- color = Color.kRed;
- } else if (alliance.get() == Alliance.Blue) {
- color = Color.kBlue;
- } else {
- color = Color.kWhite;
- }
- }
-
@Override
public void periodic() {
if (underSecsToFlip(5.0) && flippy) {
if (!Constants.DISABLE_SMART_DASHBOARD) {
SmartDashboard.putNumber("Shooter Speed Error (mps)", shooterTargetSpeed - actualWheelVelocity);
- SmartDashboard.putString("WON AUTO?", (HubActive.wonAuto()) ? "WON" : "LOST");
SmartDashboard.putBoolean("Shooter At Speed", atTargetSpeed());
SmartDashboard.putBoolean("Shooter Running", shooterTargetSpeed > 0);
}
+
+ // keep this
+ SmartDashboard.putString("WON AUTO?", (HubActive.wonAuto()) ? "WON" : "LOST");
}
/**