<commit_before>/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST Team 2035, 2012. All Rights Reserved.                  */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.RobotMap;

/**
 * @author Team 2035 Programmers
 */

public class Pusher extends Subsystem {
    
    private boolean frontGripDeployed1;
    private boolean frontGripDeployed2;
    private boolean rearGripDeployed;
    private boolean frontGripContacted;
    private boolean rearGripContacted;
    private Solenoid frontSolenoid1;
    private Solenoid frontSolenoid2;
    private Solenoid rearSolenoid;

    public Pusher() {
        frontGripDeployed1 = false;
        frontGripDeployed2 = false;
        rearGripDeployed = false;
        frontGripContacted = false;
        rearGripContacted = false;
        frontSolenoid1 = new Solenoid(RobotMap.gripsFrontSolenoid1);
        frontSolenoid2 = new Solenoid(RobotMap.gripsFrontSolenoid2);
        rearSolenoid = new Solenoid(RobotMap.gripsRearSolenoid);
        
    }
    /** The front Pusher has two air cylinders to have the option to extend 3 or 6 inches.
     * 
     * @param position Either 0 for both off, 1 for a single extension, or 2 for double extension
     */
    public void moveFrontPusher(int position) {
        if(position == 1) {
            frontSolenoid1.set(true);
            frontGripDeployed1 = true;<commit_msg>changed names for front and rear solenoids based off JD's changes<commit_after>/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST Team 2035, 2012. All Rights Reserved.                  */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.RobotMap;

/**
 * @author Team 2035 Programmers
 */

public class Pusher extends Subsystem {
    
    private boolean frontGripDeployed1;
    private boolean frontGripDeployed2;
    private boolean rearGripDeployed;
    private boolean frontGripContacted;
    private boolean rearGripContacted;
    private Solenoid frontSolenoid1;
    private Solenoid frontSolenoid2;
    private Solenoid rearSolenoid;

    public Pusher() {
        frontGripDeployed1 = false;
        frontGripDeployed2 = false;
        rearGripDeployed = false;
        frontGripContacted = false;
        rearGripContacted = false;
        frontSolenoid1 = RobotMap.frontPusherFirst;
        frontSolenoid2 = RobotMap.frontPusherSecond;
        rearSolenoid = RobotMap.rearPusher;
        
    }
    /** The front Pusher has two air cylinders to have the option to extend 3 or 6 inches.
     * 
     * @param position Either 0 for both off, 1 for a single extension, or 2 for double extension
     */
    public void moveFrontPusher(int position) {
        if(position == 1) {
            frontSolenoid1.set(true);
            frontGripDeployed1 = true;
{'fraction_non_alphanumeric': 0.14831640833778728, 'fraction_numerical': 0.01549973276322822, 'mean_word_length': 1.933385579937304, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7657709', 'n_tokens_mistral': 1051, 'n_tokens_neox': 1016, 'n_words': 294}