<commit_before>package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.Servo;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.commands.RunCameraServo;
import edu.wpi.first.wpilibj.templates.debugging.DebugInfo;
import edu.wpi.first.wpilibj.templates.debugging.DebugInfoGroup;
import edu.wpi.first.wpilibj.templates.debugging.DebugLevel;
import edu.wpi.first.wpilibj.templates.debugging.DebugOutput;
import edu.wpi.first.wpilibj.templates.debugging.DebugStatus;
import edu.wpi.first.wpilibj.templates.debugging.Debuggable;
import edu.wpi.first.wpilibj.templates.variablestores.VstM;

/**
 *
 * @author daboross
 */
public class CameraServo extends Subsystem implements Debuggable {

    private Servo cameraServo;
    private int setLast = -50;

    public CameraServo() {
        System.out.println("CameraServo: Created");
        cameraServo = new Servo(VstM.PWM.CAMERA_SERVO);
    }

    protected void initDefaultCommand() {
        setDefaultCommand(new RunCameraServo());
    }

    public void turnLeft() {
        cameraServo.setAngle(45);
        setLast = 0;
    }

    public void turnRight() {
        cameraServo.setAngle(135);
        setLast = 90;
    }

    public DebugOutput getStatus() {
        DebugInfo[] infoList = new DebugInfo[3];
        infoList[0] = new DebugStatus("CameraServo:Should", setLast, DebugLevel.MID);
        infoList[1] = new DebugStatus("CameraServo:Get", cameraServo.get(), DebugLevel.MID);
        infoList[2] = new DebugStatus("CameraServo:GetAngle", cameraServo.getAngle(), DebugLevel.MID);
        return new DebugInfoGroup(infoList);
    }
}<commit_msg>Changed camera to position correctly.<commit_after>package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.Servo;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.commands.RunCameraServo;
import edu.wpi.first.wpilibj.templates.debugging.DebugInfo;
import edu.wpi.first.wpilibj.templates.debugging.DebugInfoGroup;
import edu.wpi.first.wpilibj.templates.debugging.DebugLevel;
import edu.wpi.first.wpilibj.templates.debugging.DebugOutput;
import edu.wpi.first.wpilibj.templates.debugging.DebugStatus;
import edu.wpi.first.wpilibj.templates.debugging.Debuggable;
import edu.wpi.first.wpilibj.templates.variablestores.VstM;

/**
 *
 * @author daboross
 */
public class CameraServo extends Subsystem implements Debuggable {

    private Servo cameraServo;
    private int setLast = -50;

    public CameraServo() {
        System.out.println("CameraServo: Created");
        cameraServo = new Servo(VstM.PWM.CAMERA_SERVO);
    }

    protected void initDefaultCommand() {
        setDefaultCommand(new RunCameraServo());
    }

    public void turnLeft() {
        cameraServo.setAngle(150);
        setLast = 0;
    }

    public void turnRight() {
        cameraServo.setAngle(45);
        setLast = 90;
    }

    public DebugOutput getStatus() {
        DebugInfo[] infoList = new DebugInfo[3];
        infoList[0] = new DebugStatus("CameraServo:Should", setLast, DebugLevel.MID);
        infoList[1] = new DebugStatus("CameraServo:Get", cameraServo.get(), DebugLevel.MID);
        infoList[2] = new DebugStatus("CameraServo:GetAngle", cameraServo.getAngle(), DebugLevel.MID);
        return new DebugInfoGroup(infoList);
    }
}
{'fraction_non_alphanumeric': 0.11465157832042883, 'fraction_numerical': 0.008338296605122097, 'mean_word_length': 3.8822674418604652, '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': '4263478', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1105, 'n_words': 178}