Skip to content

Commit

Permalink
don't initialize the Timer object in the constructor
Browse files Browse the repository at this point in the history
otherwise We'd need to load some more native dependencies on the robot side
  • Loading branch information
varun7654 committed Nov 6, 2023
1 parent d0d1fe5 commit fb8e543
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,15 @@ 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;
}

private int rotationIndex;
private boolean isFirstRun;

private Timer timer = new Timer();
private Timer timer;
private Command pathDriveCommand = null;

/**
Expand Down

0 comments on commit fb8e543

Please sign in to comment.