Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/main/java/xbot/common/command/BaseRobot.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ public void robotInit() {
if (logDirectory.exists() && logDirectory.isDirectory() && logDirectory.canWrite()) {
Logger.addDataReceiver(new WPILOGWriter("/U/logs")); // Log to a USB stick with label LOGSDRIVE plugged into the inner usb port
}
Logger.addDataReceiver(new NT4Publisher()); // Publish data to NetworkTables

if (!DriverStation.isFMSAttached()) {
// Publish data to NetworkTables if we're not on a real field
Logger.addDataReceiver(new NT4Publisher());
}

LoggedPowerDistribution.getInstance(
PowerDistribution.kDefaultModule,
PowerDistribution.ModuleType.kRev); // Log power distribution data from the configured module
Expand Down