diff --git a/autobuilder-robot/src/main/java/com/dacubeking/AutoBuilder/robot/serialization/TrajectoryAutonomousStep.java b/autobuilder-robot/src/main/java/com/dacubeking/AutoBuilder/robot/serialization/TrajectoryAutonomousStep.java index 3bc39ac..b12e306 100644 --- a/autobuilder-robot/src/main/java/com/dacubeking/AutoBuilder/robot/serialization/TrajectoryAutonomousStep.java +++ b/autobuilder-robot/src/main/java/com/dacubeking/AutoBuilder/robot/serialization/TrajectoryAutonomousStep.java @@ -90,6 +90,7 @@ public void end() { @Override @AutoBuilderRobotSide public void initialize() { + timer = new Timer(); rotationIndex = 1; // Start at the second rotation (the first is the starting rotation) isFirstRun = true; } @@ -97,7 +98,7 @@ public void initialize() { private int rotationIndex; private boolean isFirstRun; - private Timer timer = new Timer(); + private Timer timer; private Command pathDriveCommand = null; /**