From 95c1957f9e11a4f79f1aea7447c21c30e787b883 Mon Sep 17 00:00:00 2001 From: 00magikarp <94652654+00magikarp@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:50:27 -0400 Subject: [PATCH] add processInputs as a method under CustomLogger --- src/main/kotlin/com/team4099/robot2023/util/CustomLogger.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/com/team4099/robot2023/util/CustomLogger.kt b/src/main/kotlin/com/team4099/robot2023/util/CustomLogger.kt index bd08afdd..e52956c4 100644 --- a/src/main/kotlin/com/team4099/robot2023/util/CustomLogger.kt +++ b/src/main/kotlin/com/team4099/robot2023/util/CustomLogger.kt @@ -7,9 +7,14 @@ import edu.wpi.first.util.struct.Struct import edu.wpi.first.util.struct.StructSerializable import edu.wpi.first.wpilibj.smartdashboard.Mechanism2d import org.littletonrobotics.junction.Logger +import org.littletonrobotics.junction.inputs.LoggableInputs class CustomLogger { companion object { + inline fun processInputs(key: String, inputs: LoggableInputs) { + Logger.processInputs(key, inputs) + } + inline fun > recordOutput(key: String, value: E) { Logger.recordOutput(key, value) }