Skip to content

Commit

Permalink
ran SpotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
StewardHail3433 committed Jan 11, 2024
1 parent 05a723f commit f89608a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ dependencies {
annotationProcessor "org.littletonrobotics.akit.junction:junction-autolog:$akitJson.version"
}

// END: Setup AdvantageKit
// END: Setup AdvantageKit
26 changes: 13 additions & 13 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

package frc.robot;


import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
// START: Setup AdvantageKit
import org.littletonrobotics.junction.LoggedRobot;
import org.littletonrobotics.junction.Logger;
import org.littletonrobotics.junction.networktables.NT4Publisher;
import org.littletonrobotics.junction.wpilog.WPILOGWriter;

// END: Setup AdvantageKit
public class Robot extends LoggedRobot {
public class Robot extends LoggedRobot {
private Command m_autonomousCommand;

private RobotContainer m_robotContainer;
Expand Down Expand Up @@ -43,7 +43,7 @@ public void robotInit() {
/* Initialize AdvantageKit Logging */
// Set up data receivers & replay source

//We will add support for replay mode later
// We will add support for replay mode later
/*if (Constants.AdvantageKit.REPLAY_MODE) {
// Running in replay mode
setUseTiming(false); // Run as fast as possible
Expand All @@ -55,16 +55,16 @@ public void robotInit() {
new WPILOGWriter(
LogFileUtil.addPathSuffix(logPath, "_sim"))); // Save outputs to a new log
} else {*/
if (isReal()) {
// Running on real robot
Logger.addDataReceiver(new WPILOGWriter("/media/sda1/")); // Log to a USB stick
Logger.addDataReceiver(new NT4Publisher()); // Publish data to NetworkTables
} else {
// Running in simulation
Logger.addDataReceiver(new WPILOGWriter(""));
Logger.addDataReceiver(new NT4Publisher());
}
//}
if (isReal()) {
// Running on real robot
Logger.addDataReceiver(new WPILOGWriter("/media/sda1/")); // Log to a USB stick
Logger.addDataReceiver(new NT4Publisher()); // Publish data to NetworkTables
} else {
// Running in simulation
Logger.addDataReceiver(new WPILOGWriter(""));
Logger.addDataReceiver(new NT4Publisher());
}
// }

Logger.start(); // Start logging! No more data receivers, replay sources, or metadata values may
// be added.
Expand Down

0 comments on commit f89608a

Please sign in to comment.