Skip to content

Commit

Permalink
Characterized swerve drive and changed gear ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
Prog694 committed Jun 21, 2024
1 parent a42e5bb commit 3ab1e40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/stuypulse/robot/constants/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public interface Encoder {
public interface Drive {
double WHEEL_DIAMETER = Units.inchesToMeters(4);
double WHEEL_CIRCUMFERENCE = WHEEL_DIAMETER * Math.PI;
double GEAR_RATIO = 1.0 / 6.12;
double GEAR_RATIO = 1.0 / 5.36;

double POSITION_CONVERSION = WHEEL_CIRCUMFERENCE * GEAR_RATIO;
double VELOCITY_CONVERSION = POSITION_CONVERSION / 60.0;
Expand All @@ -218,9 +218,9 @@ public interface Drive {
double kI = 0.0;
double kD = 0.0;

double kS = 0.27354;
SmartNumber kV = new SmartNumber("Swerve/Drive/FF/kV", 2.1022);
SmartNumber kA = new SmartNumber("Swerve/Drive/FF/kA", 0.41251);
double kS = 0.15618;
SmartNumber kV = new SmartNumber("Swerve/Drive/FF/kV", 0.00012288);
SmartNumber kA = new SmartNumber("Swerve/Drive/FF/kA", 0.0000259);
}

public interface FrontRight {
Expand Down

0 comments on commit 3ab1e40

Please sign in to comment.