Skip to content

Commit

Permalink
Merge pull request #465 from frc-862/464-hoot-logs
Browse files Browse the repository at this point in the history
[#464] Moved logging
  • Loading branch information
MattD8957 authored Mar 20, 2024
2 parents 9602766 + 1b79150 commit bf9eb94
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static final boolean isMercury() {
return MERCURY_PATH.toFile().exists();
}

public static final String HOOT_PATH = "/home/lvuser/signallogger";
public static final String HOOT_PATH = "/home/lvuser/logs";

public class DrivetrainConstants { // TODO Get new for new robot
public static final double MaxSpeed = 6; // 6 meters per second desired top speed
Expand Down
13 changes: 11 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package frc.robot;

import com.ctre.phoenix6.Orchestra;
import com.ctre.phoenix6.SignalLogger;
import com.ctre.phoenix6.mechanisms.swerve.SwerveRequest;
import com.pathplanner.lib.auto.AutoBuilder;
import com.pathplanner.lib.auto.NamedCommands;
Expand Down Expand Up @@ -106,8 +107,16 @@ public class RobotContainer extends LightningContainer {

@Override
protected void initializeSubsystems() {
// SignalLogger.setPath(Constants.HOOT_PATH);
// SignalLogger.enableAutoLogging(true);
boolean setPath = SignalLogger.setPath(Constants.HOOT_PATH).isOK();
// SignalLogger.enableAutoLogging(true); // TODO Return during COMPS
boolean startedLogs = SignalLogger.start().isOK();

if(startedLogs && setPath) {
System.out.println("STARTED HOOT LOG");
} else {
System.out.println("FAILED TO START HOOT LOG");
}


driver = new XboxControllerFilter(ControllerConstants.DriverControllerPort,
Constants.ControllerConstants.DEADBAND, -1, 1,
Expand Down

0 comments on commit bf9eb94

Please sign in to comment.