<commit_before>package org.usfirst.frc.team166.robot.subsystems;

import edu.wpi.first.wpilibj.AnalogInput;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;

import org.usfirst.frc.team166.robot.RobotMap;

/**
 *
 */
public class Shooter extends Subsystem {

	Victor shooterLeftSide;
	Victor shooterRightSide;
	Victor shooterAngle;
	Encoder encoderLeft;
	Encoder encoderRight;
	AnalogInput pot;

	public Shooter() {
		shooterLeftSide = new Victor(RobotMap.Pwm.LeftShooterMotor);
		shooterRightSide = new Victor(RobotMap.Pwm.RightShooterMotor);
		shooterAngle = new Victor(RobotMap.Pwm.ShooterAngleMotor);
		encoderLeft = new Encoder(null, null);
		encoderRight = new Encoder(null, null);
	}

	public double getPot() {
		// math to get to angle
		return pot.getVoltage();
	}

	// launch the ball
	public void Fire(double power) {
		shooterLeftSide.set(power);
		shooterRightSide.set(power);
	}

	public void angleShooter(double power) {
		shooterAngle.set(power);
	}

	// Put methods for controlling this subsystem
	// here. Call these from Commands.

	@Override
	public void initDefaultCommand() {
		// Set the default command for a subsystem here.
		// setDefaultCommand(new MySpecialCommand());
	}
}
<commit_msg>Added Encoder Values in Shooter<commit_after>package org.usfirst.frc.team166.robot.subsystems;

import edu.wpi.first.wpilibj.AnalogInput;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;

import org.usfirst.frc.team166.robot.RobotMap;

/**
 *
 */
public class Shooter extends Subsystem {

	Victor shooterLeftSide;
	Victor shooterRightSide;
	Victor shooterAngle;
	Encoder encoderLeft;
	Encoder encoderRight;
	AnalogInput pot;

	public Shooter() {
		shooterLeftSide = new Victor(RobotMap.Pwm.LeftShooterMotor);
		shooterRightSide = new Victor(RobotMap.Pwm.RightShooterMotor);
		shooterAngle = new Victor(RobotMap.Pwm.ShooterAngleMotor);
		encoderLeft = new Encoder(12, 13);
		encoderRight = new Encoder(14, 15);
	}

	public double getPot() {
		// math to get to angle
		return pot.getVoltage();
	}

	// launch the ball
	public void Fire(double power) {
		shooterLeftSide.set(power);
		shooterRightSide.set(power);
	}

	public void angleShooter(double power) {
		shooterAngle.set(power);
	}

	// Put methods for controlling this subsystem
	// here. Call these from Commands.

	@Override
	public void initDefaultCommand() {
		// Set the default command for a subsystem here.
		// setDefaultCommand(new MySpecialCommand());
	}
}

{'fraction_non_alphanumeric': 0.10440835266821345, 'fraction_numerical': 0.007733952049497293, 'mean_word_length': 4.492569002123142, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4624509', 'n_tokens_mistral': 993, 'n_tokens_neox': 874, 'n_words': 198}