src/main/java/frc/robot/commands/ClimbPID.java
// Returns true when the command should end.
Returns true when the command should end.
Returns true when the command should end .
@Override
  public boolean isFinished() {
    if (m_drive.getLeftRevs() >= 9 && m_drive.getRightRevs() >= 9) {
      System.out.println("CLIMBPID END");
      return true;
    } else {
      return false;
    }
  }
@ Override public boolean isFinished ( ) { if ( m_drive . getLeftRevs ( ) >= 9 && m_drive . getRightRevs ( ) >= 9 ) { System . out . println ( "CLIMBPID END" ) ; return true ; } else { return false ; } }
Returns true when the command should end.
Returns true when the command should end .
// if ((m_drive.getLeftRevs() > leftGoal + stop_threshold_revs) // && (m_drive.getLeftRevs() < leftGoal - stop_threshold_revs) && // (m_drive.getRightRevs() > rightGoal - stop_threshold_revs) // && (m_drive.getRightRevs() < rightGoal + stop_threshold_revs)) { // onTargetCount++; // // return true; // } else { // onTargetCount = 0; // return false; // } // return onTargetCount > count_threshold;