System.out.println("Hood forced down");
} else {
hood.forceHoodDown(false);
- System.out.println("Hood forced down");
+ System.out.println("Hood forced up");
}
shooter.setShooter(-ShotInterpolation.shooterVelocityMap.get(distanceFromTarget));
Logger.recordOutput("Distance From Target", distanceFromTarget);
public static boolean underTrench(double x, double y) {
// ensures we aren't in center channel
- if (y > Units.inchesToMeters(50.0) && y < FIELD_WIDTH - Units.inchesToMeters(50)) {
+ if (y > Units.inchesToMeters(50.0
+ ) && y < FIELD_WIDTH - Units.inchesToMeters(50)) {
return false;
}
// if our location is to far away from right underneath trench in terms of x
// SmartDashboard.putNumber("Hood Setpoint", goalAngle.getDegrees());
if (forceHoodDown){
- System.out.println("Forcing the hood down");
goalAngle = Rotation2d.fromDegrees(HoodConstants.MAX_ANGLE);
goalVelocityRadPerSec = 0.0;
+ } else {
}
double setpointRad = goalAngle.getRadians();