From faf2840b51a08c6e76249f34d699931fdb448af6 Mon Sep 17 00:00:00 2001 From: oh-yes-0-fps Date: Tue, 7 Jan 2025 12:47:52 -0500 Subject: [PATCH] Revert "[epilogue] Add a measure's symbol to its name when logged by Epilogue (#7535)" This reverts commit 469bb3290d2f3cfd0a90c572fc8ab01f2cd0be53. --- .../edu/wpi/first/epilogue/logging/EpilogueBackend.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/EpilogueBackend.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/EpilogueBackend.java index 6759460fadd..f006a319dca 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/EpilogueBackend.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/EpilogueBackend.java @@ -198,10 +198,9 @@ default void log(String identifier, Collection value, Struct struct) { * * @param identifier the identifier of the data field * @param value the new value of the data field - * @param the dimension of the unit */ - default void log(String identifier, Measure value) { - log(identifier, value, value.baseUnit()); + default void log(String identifier, Measure value) { + log(identifier, value.baseUnitMagnitude()); } /** @@ -213,7 +212,7 @@ default void log(String identifier, Measure value) { * @param the dimension of the unit */ default void log(String identifier, Measure value, U unit) { - log(identifier + " (" + unit.symbol() + ")", value.in(unit)); + log(identifier, value.in(unit)); } /**