<commit_before>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.*;
//import edu.wpi.first.wpilibj.DriverStationLCD.*;
import edu.wpi.first.wpilibj.Relay.*;
import edu.wpi.first.wpilibj.templates.*;
/**
 *
 * @author Philip2
 */
public class PickArm {
    Team3373 team;
    Relay ArmSpike = new Relay(1);

    public PickArm(Team3373 t){
       team = t;
    }
    

    
    public void extend() {


        if (team.armLimit.get()) {
            team.LCD.println(DriverStationLCD.Line.kUser1, 1, "1");
            team.LCD.updateLCD();
        } else if (!team.armLimit.get()) {
            team.LCD.println(DriverStationLCD.Line.kUser5, 1, "0");
            team.LCD.updateLCD();
        }
        
        if (team.shootLB){
            ArmSpike.set(Value.kForward);
        } else if (team.shootRB){
            ArmSpike.set(Value.kReverse);
        } else {
            ArmSpike.set(Value.kOff);
        }


    }
}<commit_msg>working limit switch and relay!<commit_after>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.*;
//import edu.wpi.first.wpilibj.DriverStationLCD.*;
import edu.wpi.first.wpilibj.Relay.*;
import edu.wpi.first.wpilibj.templates.*;
/**
 *
 * @author Philip2
 */
public class PickArm {
    Team3373 team;
    Relay ArmSpike = new Relay(1);

    public PickArm(Team3373 t){
       team = t;
    }
    

    
    public void extend() {


        if (team.armLimit.get()) {
            team.LCD.println(DriverStationLCD.Line.kUser1, 1, "1");
            team.LCD.updateLCD();
        } else if (!team.armLimit.get()) {
            team.LCD.println(DriverStationLCD.Line.kUser5, 1, "0");
            team.LCD.updateLCD();
        }
        
        if (team.armLimit.get()){ 
            ArmSpike.set(Value.kForward);
        } else if (team.shootRB){
            ArmSpike.set(Value.kReverse);
        } else {
            ArmSpike.set(Value.kOff);
        }


    }
}
{'fraction_non_alphanumeric': 0.13964386129334583, 'fraction_numerical': 0.01499531396438613, 'mean_word_length': 2.0719424460431655, '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': '1881242', 'n_tokens_mistral': 772, 'n_tokens_neox': 731, 'n_words': 136}