Skip to content

Commit

Permalink
need to fix constants/mode, as exists its a terrible system
Browse files Browse the repository at this point in the history
  • Loading branch information
epshteinmatthew committed Nov 5, 2024
1 parent 2ff67f3 commit fc8649e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/frc/robot/Robot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class Robot: LoggedRobot() {
// Logger.addDataReceiver(WPILOGWriter()) // Log to a USB stick ("/U/logs")
Logger.addDataReceiver(NT4Publisher()) // Publish data to NetworkTables
PowerDistribution(1, PowerDistribution.ModuleType.kRev) // Enables power distribution logging
}else if (isSimulation()){
// Running a physics simulator, log to NT
Logger.addDataReceiver(NT4Publisher())
} else if (Constants.mode == Constants.States.REPLAY){
setUseTiming(false) // Run as fast as possible
val logPath = LogFileUtil.findReplayLog() // Pull the replay log from AdvantageScope (or prompt the user)
Expand All @@ -50,9 +53,6 @@ class Robot: LoggedRobot() {
)
)
) // Save outputs to a new log
} else if (Constants.mode == Constants.States.SIM){
// Running a physics simulator, log to NT
Logger.addDataReceiver(NT4Publisher())
}
// Logger.disableDeterministicTimestamps() // See "Deterministic Timestamps" in the "Understanding Data Flow" page
Logger.start() // Start logging! No more data receivers, replay sources, or metadata values may be added.
Expand Down

0 comments on commit fc8649e

Please sign in to comment.