shooter tables and shoot command

This commit is contained in:
aarav18
2022-02-25 20:18:21 -07:00
parent 31346ff646
commit 6e55d6fabd
8 changed files with 385 additions and 213 deletions
@@ -53,12 +53,12 @@ public class AimToCenter extends CommandBase {
}
/**
* Checks if in deadzone.
* @return True if deadzone.
*/
public boolean isDeadzone() {
if ((ShooterConstants.DEADZONE_LEFT < m_targetAngle) && (m_targetAngle < ShooterConstants.DEADZONE_RIGHT)) {
return true;
} else {
return false;
}
return ((ShooterConstants.DEADZONE_LEFT < m_targetAngle) && (m_targetAngle < ShooterConstants.DEADZONE_RIGHT));
}
// Called once the command ends or is interrupted.