TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DRSS_NewerBlueAutonomous.java
/**
     * Checks if two values are approximately equal to each other.
     *
     * @param value1 The 1st value to test
     * @param value2 The 2nd value
     * @param threshold How far off the two values can be to be considered approximately equal
     * @return A boolean statement describing if the values are equal within the threshold
     */
Checks if two values are approximately equal to each other.
@param value1 The 1st value to test
@param value2 The 2nd value
@param threshold How far off the two values can be to be considered approximately equal
@return A boolean statement describing if the values are equal within the threshold
Checks if two values are approximately equal to each other . @param value1 The 1st value to test @param value2 The 2nd value @param threshold How far off the two values can be to be considered approximately equal @return A boolean statement describing if the values are equal within the threshold
private boolean estimateEquals(int value1, int value2, int threshold){
        if((value1 >= value2 - threshold) && (value1 <= value2 + threshold)){
            return true;
        } else{
            return false;
        }
    }
private boolean estimateEquals ( int value1 , int value2 , int threshold ) { if ( ( value1 >= value2 - threshold ) && ( value1 <= value2 + threshold ) ) { return true ; } else { return false ; } }
Checks if two values are approximately equal to each other.
Checks if two values are approximately equal to each other .