Skip to content

Commit

Permalink
Add DS logging
Browse files Browse the repository at this point in the history
  • Loading branch information
agasser committed Nov 3, 2024
1 parent c25d42e commit 9742335
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package frc.robot;

import com.ctre.phoenix6.SignalLogger;
import edu.wpi.first.wpilibj.DataLogManager;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj2.command.Command;
Expand All @@ -21,6 +22,8 @@ public void robotInit() {
m_robotContainer = new RobotContainer();

SignalLogger.start(); // CTRE logger
DataLogManager.start(); // WPILib logger
DriverStation.startDataLog(DataLogManager.getLog()); // Record both DS control and joystick data
}

@Override
Expand Down

0 comments on commit 9742335

Please sign in to comment.