Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intial limits. untested #93

Merged
merged 4 commits into from
Mar 9, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/settings/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public double getValue() {
public static final double k_DRIVE_FF_V = 0;
public static final double DRIVE_DEADBAND_MPS = 0.01;
public static final double DRIVE_MOTOR_RAMP = 0.1;
public static final double DRIVE_CURRENT_LIMIT = 200;
public static final double DRIVE_CURRENT_LIMIT = 30;

// Steer Motor
/**
Expand Down Expand Up @@ -368,6 +368,8 @@ public CTREConfigs() {
driveMotorConfig.CurrentLimits.SupplyCurrentLimit = DriveConstants.DRIVE_CURRENT_LIMIT;
driveMotorConfig.CurrentLimits.SupplyCurrentLimitEnable = true;
driveMotorConfig.CurrentLimits.StatorCurrentLimitEnable = false;
driveMotorConfig.CurrentLimits.SupplyCurrentThreshold = 50;
driveMotorConfig.CurrentLimits.SupplyTimeThreshold = 1.4;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked with Emilio. He has some concern about using 1.4. The breaker can deteriorate over time when we go above it's limit. We should move this back to say 0.8. That should still allow us to accelaerate. We can test on field.


// Steer encoder.
steerEncoderConfig.MagnetSensor.AbsoluteSensorRange = AbsoluteSensorRangeValue.Signed_PlusMinusHalf;
Expand Down
Loading