<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.subsystems;

import edu.gappleto.common.LEDManager;
import edu.wpi.first.wpilibj.DigitalOutput;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.DriverStation.Alliance;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.RobotMap;

/**
 *
 * @author gappleto97
 */
public class LED extends Subsystem
{
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    static private final DigitalOutput enabler = new DigitalOutput(RobotMap.enabler),
				team = new DigitalOutput(RobotMap.team),
				fire = new DigitalOutput(RobotMap.fire),
				auto = new DigitalOutput(RobotMap.auto);
    
    static private final DriverStation get = DriverStation.getInstance();
    
    /**
     * Sets the Arduino's LEDs to indicate that the robot is enabled
     * @author ThePenultimateOne
     * @since Bruce (2.2.2)
    */
    public void setEnabled()
    {
	enabler.set(get.isEnabled());
    }
    
    /**
     * Sets the Arduino's LEDs to indicate that the robot is firing
     * @author ThePenultimateOne
     * @param a	Boolean—indicator as to whether the robot is firing
     * @since Bruce (2.2.2)
     * @deprecated
    */<commit_msg>Added javadocs for all methods; fixed class javadoc<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.subsystems;

import edu.gappleto.common.LEDManager;
import edu.wpi.first.wpilibj.DigitalOutput;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.DriverStation.Alliance;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.RobotMap;

/**
 * A class for interfacing with the Arudino's LED systems
 * @author ThePenultimateOne
 */
public class LED extends Subsystem
{
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    static private final DigitalOutput enabler = new DigitalOutput(RobotMap.enabler),
				team = new DigitalOutput(RobotMap.team),
				fire = new DigitalOutput(RobotMap.fire),
				auto = new DigitalOutput(RobotMap.auto);
    
    static private final DriverStation get = DriverStation.getInstance();
    
    /**
     * Sets the Arduino's LEDs to indicate that the robot is enabled
     * @author ThePenultimateOne
     * @since Bruce (2.2.2)
    */
    public void setEnabled()
    {
	enabler.set(get.isEnabled());
    }
    
    /**
     * Sets the Arduino's LEDs to indicate that the robot is firing
     * @author ThePenultimateOne
     * @param a	Boolean—indicator as to whether the robot is firing
     * @since Bruce (2.2.2)
     * @deprecated
    */
{'fraction_non_alphanumeric': 0.0927766732935719, 'fraction_numerical': 0.004638833664678595, 'mean_word_length': 3.369030390738061, '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': '3135718', 'n_tokens_mistral': 959, 'n_tokens_neox': 917, 'n_words': 272}