Skip to content

Commit

Permalink
Move logging stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrott committed Feb 3, 2023
1 parent b617f87 commit 77dbd7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import com.qualcomm.robotcore.hardware.IMU;
import com.qualcomm.robotcore.hardware.VoltageSensor;

import org.firstinspires.ftc.teamcode.tuning.LogFiles;
import org.firstinspires.ftc.teamcode.util.LogFiles;
import org.firstinspires.ftc.teamcode.util.Encoder;
import org.firstinspires.ftc.teamcode.util.Localizer;
import org.firstinspires.ftc.teamcode.util.LynxFirmwareVersion;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import com.qualcomm.robotcore.hardware.IMU;
import com.qualcomm.robotcore.hardware.VoltageSensor;

import org.firstinspires.ftc.teamcode.tuning.LogFiles;
import org.firstinspires.ftc.teamcode.util.LogFiles;
import org.firstinspires.ftc.teamcode.util.Encoder;
import org.firstinspires.ftc.teamcode.util.Localizer;
import org.firstinspires.ftc.teamcode.util.LynxFirmwareVersion;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.firstinspires.ftc.teamcode.tuning;
package org.firstinspires.ftc.teamcode.util;

import android.annotation.SuppressLint;
import android.content.Context;
Expand All @@ -19,6 +19,7 @@
import org.firstinspires.ftc.teamcode.TankDrive;
import org.firstinspires.ftc.teamcode.ThreeDeadWheelLocalizer;
import org.firstinspires.ftc.teamcode.TwoDeadWheelLocalizer;
import org.firstinspires.ftc.teamcode.tuning.TuningOpModes;

import java.io.File;
import java.io.FileInputStream;
Expand All @@ -40,7 +41,7 @@ public final class LogFiles {
public static LogFile log = new LogFile("uninitialized");

public static class LogFile {
public int version = 0;
public String version = "quickstart2 v0";

public String opModeName;
public long msInit = System.currentTimeMillis();
Expand Down Expand Up @@ -189,6 +190,8 @@ public static void registerRoutes(Context context, WebHandlerManager manager) {
for (File f : fs) {
sb.append("<li><a href=\"/logs/download?file=");
sb.append(f.getName());
sb.append("\" download=\"");
sb.append(f.getName());
sb.append("\">");
sb.append(f.getName());
sb.append("</a></li>");
Expand Down

0 comments on commit 77dbd7f

Please sign in to comment.