From dddc145724d15ab76d7f68be8c7cfc2a66fef8b3 Mon Sep 17 00:00:00 2001 From: Awsmeworld304 Date: Sat, 28 Feb 2026 15:57:50 -0500 Subject: [PATCH 1/3] Format partscandle. --- src/org/parts3492/partslib/PARTsCandle.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/org/parts3492/partslib/PARTsCandle.java b/src/org/parts3492/partslib/PARTsCandle.java index f9e47de..4fcc69f 100644 --- a/src/org/parts3492/partslib/PARTsCandle.java +++ b/src/org/parts3492/partslib/PARTsCandle.java @@ -171,12 +171,8 @@ public PARTsCandle(String className, int canID, int ledLength, String canBusName /*---------------------------------- Custom Private Functions ---------------------------------*/ protected void setColor(Color color) { setControl(new EmptyAnimation(0)); - setControl(new SolidColor(0, LED_LENGTH).withColor(new RGBWColor(color.r, color.g, color.b))); - //camera 21 - 14 inches forward - //camera 24 - 13 inches side - //camera 14 inches up - //camera 45 degrees side to side - //camera 40 degrees up and down + setControl( + new SolidColor(0, LED_LENGTH).withColor(new RGBWColor(color.r, color.g, color.b))); } protected void setNoColor() { From 49da2599eb94543bff93bfba6b56514c4316be2a Mon Sep 17 00:00:00 2001 From: Awsmeworld304 Date: Sat, 28 Feb 2026 15:58:27 -0500 Subject: [PATCH 2/3] Make the to command in partsunits chainable. --- src/org/parts3492/partslib/PARTsUnit.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/org/parts3492/partslib/PARTsUnit.java b/src/org/parts3492/partslib/PARTsUnit.java index 838495a..e0845f6 100644 --- a/src/org/parts3492/partslib/PARTsUnit.java +++ b/src/org/parts3492/partslib/PARTsUnit.java @@ -72,9 +72,6 @@ public PARTsUnitType getUnitType() { * @param unitType The target unit. * @return Converted unit in double. */ - public PARTsUnit toPARTsUnit(PARTsUnitType unitType) { - return new PARTsUnit(to(unitType), unitType); - } /** * Converts current unit into the requested unit. @@ -82,7 +79,7 @@ public PARTsUnit toPARTsUnit(PARTsUnitType unitType) { * @param unitType The target unit. * @return Converted unit in double. */ - public double to(PARTsUnitType unitType) { + private double convertValue(PARTsUnitType unitType) { String message = "No to type for unit."; switch (this.unitType) { case Angle: @@ -171,6 +168,10 @@ public double to(PARTsUnitType unitType) { } } + public double getValueAsDouble() { + return this.value; + } + /** * Converts current unit into the requested unit. * @@ -178,8 +179,8 @@ public double to(PARTsUnitType unitType) { * PARTsUnitType}. * @return The converted {@link org.parts3492.partslib.PARTsUnit PARTsUnit}. */ - public PARTsUnit as(PARTsUnitType unitType) { - return new PARTsUnit(to(unitType), unitType); + public PARTsUnit to(PARTsUnitType unitType) { + return new PARTsUnit(convertValue(unitType), unitType); } // * DIRECT STATIC CONVERSIONS */ From 7d1d68f55663fda59ae81e12b5461c8df50549f8 Mon Sep 17 00:00:00 2001 From: Awsmeworld304 Date: Thu, 5 Mar 2026 10:37:07 -0500 Subject: [PATCH 3/3] Annotations to classpath. --- .classpath | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.classpath b/.classpath index 2285bed..d0fbb01 100644 --- a/.classpath +++ b/.classpath @@ -9,5 +9,10 @@ + + + + +