From c80d2eacc4770ae145c4f2927a97179a73639717 Mon Sep 17 00:00:00 2001 From: Jonah <47046556+jwbonner@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:31:31 -0400 Subject: [PATCH] Log team number in system stats --- .../littletonrobotics/junction/inputs/LoggedSystemStats.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/junction/core/src/org/littletonrobotics/junction/inputs/LoggedSystemStats.java b/junction/core/src/org/littletonrobotics/junction/inputs/LoggedSystemStats.java index c90bbffc..c6199156 100644 --- a/junction/core/src/org/littletonrobotics/junction/inputs/LoggedSystemStats.java +++ b/junction/core/src/org/littletonrobotics/junction/inputs/LoggedSystemStats.java @@ -62,6 +62,7 @@ public void toLog(LogTable table) { table.put("FPGARevision", fpgaRevision); table.put("SerialNumber", serialNumber); table.put("Comments", comments); + table.put("TeamNumber", teamNumber); table.put("FPGAButton", fpgaButton); table.put("SystemActive", systemActive); table.put("BrownedOut", brownedOut); @@ -104,6 +105,7 @@ public void fromLog(LogTable table) { fpgaRevision = (int) table.get("FPGARevision", fpgaRevision); serialNumber = table.get("SerialNumber", serialNumber); comments = table.get("Comments", comments); + teamNumber = (int) table.get("TeamNumber", teamNumber); fpgaButton = table.get("FPGAButton", fpgaButton); systemActive = table.get("SystemActive", systemActive); brownedOut = table.get("BrownedOut", brownedOut);