Adds Pathweaver export test

This commit is contained in:
nathanrsxtn
2022-01-25 11:30:08 -07:00
parent d1a4a50f87
commit c4acef61ea
6 changed files with 1029 additions and 0 deletions
+16
View File
@@ -4,11 +4,14 @@
package frc4388.robot;
import java.io.IOException;
import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import frc4388.utility.RobotLogger;
import frc4388.utility.RobotTime;
/**
@@ -64,6 +67,7 @@ public class Robot extends TimedRobot {
@Override
public void disabledInit() {
m_robotTime.endMatchTime();
RobotLogger.getInstance().setEnabled(false);
}
@Override
@@ -96,6 +100,7 @@ public class Robot extends TimedRobot {
m_autonomousCommand.schedule();
}
m_robotTime.startMatchTime();
RobotLogger.getInstance().setEnabled(false);
}
/**
@@ -115,6 +120,7 @@ public class Robot extends TimedRobot {
m_autonomousCommand.cancel();
}
m_robotTime.startMatchTime();
RobotLogger.getInstance().setEnabled(true);
}
/**
@@ -126,6 +132,16 @@ public class Robot extends TimedRobot {
// m_robotContainer.getOperatorController().updateInput();
}
@Override
public void testInit() {
RobotLogger.getInstance().setEnabled(false);
try {
RobotLogger.getInstance().exportPath();
} catch (IOException e) {
e.printStackTrace();
}
}
/**
* This function is called periodically during test mode.
*/