mirror of
https://github.com/Team4388/2025RidgeScape.git
synced 2026-06-09 08:48:04 -06:00
Greatly Improved auto alignment.
This commit is contained in:
@@ -297,17 +297,17 @@ public class Elevator extends Subsystem {
|
||||
|
||||
// double elevatorVelocity = elevatorMotor.getVelocity().getValueAsDouble();
|
||||
// double elevatorTorque = elevatorMotor.getTorqueCurrent().getValueAsDouble();
|
||||
double endeffectorVelocity = endeffectorMotor.getVelocity().getValueAsDouble();
|
||||
double endeffectorTorque = endeffectorMotor.getTorqueCurrent().getValueAsDouble();
|
||||
// double endeffectorVelocity = endeffectorMotor.getVelocity().getValueAsDouble();
|
||||
// double endeffectorTorque = endeffectorMotor.getTorqueCurrent().getValueAsDouble();
|
||||
|
||||
|
||||
if(endeffectorVelocity < ElevatorConstants.SAFETY_ENDEFFECTOR_MIN_VELOCITY && endeffectorTorque > ElevatorConstants.SAFETY_ENDEFFECTOR_MAX_TORQUE ){
|
||||
PIDPosition(endeffectorMotor, endeffectorMotor.getPosition().getValueAsDouble());
|
||||
}
|
||||
// if(endeffectorVelocity < ElevatorConstants.SAFETY_ENDEFFECTOR_MIN_VELOCITY && endeffectorTorque > ElevatorConstants.SAFETY_ENDEFFECTOR_MAX_TORQUE ){
|
||||
// PIDPosition(endeffectorMotor, endeffectorMotor.getPosition().getValueAsDouble());
|
||||
// }
|
||||
|
||||
// This method will be called once per scheduler run
|
||||
SmartDashboard.putNumber("Velocity Endeffector", endeffectorVelocity);
|
||||
SmartDashboard.putNumber("Torque Endeffector", endeffectorTorque);
|
||||
// SmartDashboard.putNumber("Velocity Endeffector", endeffectorVelocity);
|
||||
// SmartDashboard.putNumber("Torque Endeffector", endeffectorTorque);
|
||||
SmartDashboard.putNumber("Basin", basinBeamBreak.get() ? 1 : 0);
|
||||
SmartDashboard.putNumber("endefector", endeffectorLimitSwitch.get() ? 1 : 0);
|
||||
SmartDashboard.putNumber("intake", intakeIR.get() ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user