mirror of
https://github.com/Team4388/2025RidgeScape.git
synced 2026-06-09 08:48:04 -06:00
Updated PID and Motor constants
Added PID to constants Used michaels candevice type for motor
This commit is contained in:
@@ -19,13 +19,10 @@ public class Elevator extends SubsystemBase {
|
||||
public Elevator(TalonFX elevatorTalonFX) {
|
||||
elevatorMotor = elevatorTalonFX;
|
||||
|
||||
elevatorMotor.setNeutralMode(NeutralModeValue.Coast);
|
||||
elevatorMotor.setNeutralMode(NeutralModeValue.Brake);
|
||||
|
||||
var PIDConfigs = new Slot0Configs();
|
||||
PIDConfigs.kP = 0;
|
||||
PIDConfigs.kI = 0;
|
||||
PIDConfigs.kD = 0;
|
||||
elevatorMotor.getConfigurator().apply(PIDConfigs);
|
||||
|
||||
elevatorMotor.getConfigurator().apply(ElevatorConstants.ELEVATOR_PID);
|
||||
}
|
||||
|
||||
//PID methods
|
||||
|
||||
Reference in New Issue
Block a user