Skip to content

Commit

Permalink
Fixed output to use conversionFactors instead.
Browse files Browse the repository at this point in the history
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
  • Loading branch information
thenetworkgrinch committed Jul 29, 2024
1 parent 05bce95 commit 3195184
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public SwerveSubsystem(File directory)
// The gear ratio is 6.75 motor revolutions per wheel rotation.
// The encoder resolution per motor revolution is 1 per motor revolution.
double driveConversionFactor = SwerveMath.calculateMetersPerRotation(Units.inchesToMeters(4), 6.75);
System.out.println("\"conversionFactor\": {");
System.out.println("\t\"angle\": " + angleConversionFactor + ",");
System.out.println("\t\"drive\": " + driveConversionFactor);
System.out.println("\"conversionFactors\": {");
System.out.println("\t\"angle\": {\"factor\": " + angleConversionFactor + " },") ;
System.out.println("\t\"drive\": {\"factor\": " + driveConversionFactor + " }");
System.out.println("}");

// Configure the Telemetry before creating the SwerveDrive to avoid unnecessary objects being created.
Expand Down

0 comments on commit 3195184

Please sign in to comment.