src/main/java/frc/robot/misc_subclasses/Dashboard.java
public void PIDtoDashboard(GenericPID pid, String name) {
        double setpointD = SmartDashboard.getNumber(name + " Setpoint", pid.getSetpoint());

        if( setpointD != pid.getSetpoint() )
            pid.setSetpoint(setpointD);
            
        SmartDashboard.putNumber(name + " Setpoint", pid.getSetpoint());
        SmartDashboard.putNumber(name + " RPM", pid.getRPM());
        SmartDashboard.putNumber(name + " Position", pid.getPosition());
        SmartDashboard.putString(name + " Domain", "[" + pid.getMin() + ", " + pid.getMax() + "]");
    }
// input into the dashboard, the pid setpoint will update accordingly
input into the dashboard, the pid setpoint will update accordingly
input into the dashboard the pid setpoint will update accordingly
public void PIDtoDashboard(GenericPID pid, String name) {
        double setpointD = SmartDashboard.getNumber(name + " Setpoint", pid.getSetpoint());
        if( setpointD != pid.getSetpoint() )
            pid.setSetpoint(setpointD);
        SmartDashboard.putNumber(name + " Setpoint", pid.getSetpoint());
        SmartDashboard.putNumber(name + " RPM", pid.getRPM());
        SmartDashboard.putNumber(name + " Position", pid.getPosition());
        SmartDashboard.putString(name + " Domain", "[" + pid.getMin() + ", " + pid.getMax() + "]");
    }
public void PIDtoDashboard ( GenericPID pid , String name ) { double setpointD = SmartDashboard . getNumber ( name + " Setpoint" , pid . getSetpoint ( ) ) ; if ( setpointD != pid . getSetpoint ( ) ) pid . setSetpoint ( setpointD ) ; SmartDashboard . putNumber ( name + " Setpoint" , pid . getSetpoint ( ) ) ; SmartDashboard . putNumber ( name + " RPM" , pid . getRPM ( ) ) ; SmartDashboard . putNumber ( name + " Position" , pid . getPosition ( ) ) ; SmartDashboard . putString ( name + " Domain" , "[" + pid . getMin ( ) + ", " + pid . getMax ( ) + "]" ) ; }
input into the dashboard, the pid setpoint will update accordingly
input into the dashboard the pid setpoint will update accordingly