<commit_before>// RobotBuilder Version: 1.5
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.


package org.usfirst.frc2811.RecycleRush.subsystems;

import org.usfirst.frc2811.RecycleRush.RobotMap;
import org.usfirst.frc2811.RecycleRush.commands.*;

import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.hal.CanTalonSRX;


/**
 *
 */
public class ToteElevator extends TalonSRXPIDBase {
    // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
    DigitalInput toteSwitch = RobotMap.elevatorReadySwitch;
    AnalogInput toteSonar = RobotMap.elevatorSonar;
    
    
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
    //FIXME public Ultrasonic rangeFinder = new Ultrasonic(1,0);
    //TODO fix port declaration, port currently using one wire, need to wires
    // Put methods for controlling this subsystem
    // here. Call these from Commands.

    public void initDefaultCommand() {
    	//Copy motor instance to ensure this function works right
        motor = RobotMap.elevatorMotor;
        
        
        isHomed=false;
        
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
        // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
    public double getDistanceToTote(){
    	//
    	//FIXME rangeFinder.setEnabled(true);
    	//TODO calibrate range maybe...(limits)
    	 return 0;//toteSonar.getAverageValue();
    	
    	
    }<commit_msg>added return statement<commit_after>// RobotBuilder Version: 1.5
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.


package org.usfirst.frc2811.RecycleRush.subsystems;

import org.usfirst.frc2811.RecycleRush.RobotMap;
import org.usfirst.frc2811.RecycleRush.commands.*;

import edu.wpi.first.wpilibj.*;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.hal.CanTalonSRX;


/**
 *
 */
public class ToteElevator extends TalonSRXPIDBase {
    // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
    DigitalInput toteSwitch = RobotMap.elevatorReadySwitch;
    AnalogInput toteSonar = RobotMap.elevatorSonar;
    
    
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
    //FIXME public Ultrasonic rangeFinder = new Ultrasonic(1,0);
    //TODO fix port declaration, port currently using one wire, need to wires
    // Put methods for controlling this subsystem
    // here. Call these from Commands.

    public void initDefaultCommand() {
    	//Copy motor instance to ensure this function works right
        motor = RobotMap.elevatorMotor;
        
        
        isHomed=false;
        
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
        // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
	
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
    public double getDistanceToTote(){
    	return 0;
    	//FIXME rangeFinder.setEnabled(true);
    	//TODO calibrate range maybe...(limits)
    	 return 0;//toteSonar.getAverageValue();
    	
    	
    }
{'fraction_non_alphanumeric': 0.07911706349206349, 'fraction_numerical': 0.008680555555555556, 'mean_word_length': 3.140657084188912, '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': '7320694', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1217, 'n_words': 372}