From 1a4973c706aefc66d9818912126ace35b7ffcfc9 Mon Sep 17 00:00:00 2001 From: Computer 0 <48131223+TheGamer1002@users.noreply.github.com> Date: Fri, 24 Mar 2023 11:54:15 -0400 Subject: [PATCH] checking out stuff --- build.gradle | 6 ++++++ simgui.json | 10 ++++++++++ src/main/java/frc/robot/RobotContainer.java | 7 +++++++ 3 files changed, 23 insertions(+) diff --git a/build.gradle b/build.gradle index 7074ae0..e82b06b 100644 --- a/build.gradle +++ b/build.gradle @@ -65,6 +65,8 @@ dependencies { nativeRelease wpi.java.vendor.jniRelease(wpi.platforms.desktop) simulationRelease wpi.sim.enableRelease() + implementation "com.github.Oblarg:Oblog:5.1.0" + } @@ -94,5 +96,9 @@ tasks.withType(JavaCompile) { options.compilerArgs.add '-XDstringConcat=inline' } +repositories { + maven { url 'https://jitpack.io' } +} + //Configure repositorie diff --git a/simgui.json b/simgui.json index 0f1daaf..72f68dd 100644 --- a/simgui.json +++ b/simgui.json @@ -15,6 +15,16 @@ "visible": false } }, + "PowerDistributions": { + "0": { + "PowerDistribution[0]": { + "open": true + } + }, + "window": { + "visible": true + } + }, "RoboRIO": { "6V Rail": { "open": true diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index d26abe2..2251c83 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -12,6 +12,7 @@ import edu.wpi.first.wpilibj2.command.button.JoystickButton; import frc.robot.commands.*; import frc.robot.subsystems.*; +import io.github.oblarg.oblog.Logger; /** * This class is where the bulk of the robot should be declared. Since Command-based is a @@ -80,6 +81,8 @@ public RobotContainer() { tab.add(m_Tank); tab.add(m_Turret); tab.add(m_claw); + + Logger.configureLoggingAndConfig(this, false); } /** @@ -214,4 +217,8 @@ public void initTest() { // Set the default tank command to DriveCommand } + + public void robotPeriodic() { + Logger.updateEntries(); + } }