Skip to content

Commit

Permalink
add processInputs as a method under CustomLogger
Browse files Browse the repository at this point in the history
  • Loading branch information
00magikarp committed Jun 19, 2024
1 parent 376c974 commit 95c1957
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/kotlin/com/team4099/robot2023/util/CustomLogger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <E : Enum<E>> recordOutput(key: String, value: E) {
Logger.recordOutput(key, value)
}
Expand Down

0 comments on commit 95c1957

Please sign in to comment.