From e64009b79704a349d5f897a3ea89f2e74fbebc19 Mon Sep 17 00:00:00 2001 From: thenetworkgrinch Date: Mon, 13 Nov 2023 09:46:07 -0600 Subject: [PATCH] Updated YAGSL --- swervelib/parser/json/ModuleJson.java | 2 +- swervelib/parser/json/PhysicalPropertiesJson.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/swervelib/parser/json/ModuleJson.java b/swervelib/parser/json/ModuleJson.java index 7dcbe4c..6bd27ee 100644 --- a/swervelib/parser/json/ModuleJson.java +++ b/swervelib/parser/json/ModuleJson.java @@ -30,7 +30,7 @@ public class ModuleJson * {@link swervelib.math.SwerveMath#calculateDegreesPerSteeringRotation(double, double)} for angle motors or * {@link swervelib.math.SwerveMath#calculateMetersPerRotation(double, double, double)} for drive motors. */ - public MotorConfigDouble conversionFactor; + public MotorConfigDouble conversionFactor = new MotorConfigDouble(0, 0); /** * Absolute encoder device configuration. */ diff --git a/swervelib/parser/json/PhysicalPropertiesJson.java b/swervelib/parser/json/PhysicalPropertiesJson.java index 0e6b722..779f84f 100644 --- a/swervelib/parser/json/PhysicalPropertiesJson.java +++ b/swervelib/parser/json/PhysicalPropertiesJson.java @@ -14,7 +14,7 @@ public class PhysicalPropertiesJson * {@link swervelib.math.SwerveMath#calculateDegreesPerSteeringRotation(double, double)} for angle motors or * {@link swervelib.math.SwerveMath#calculateMetersPerRotation(double, double, double)} for drive motors. */ - public MotorConfigDouble conversionFactor; + public MotorConfigDouble conversionFactor = new MotorConfigDouble(0, 0); /** * The current limit in AMPs to apply to the motors. */