Skip to content

Commit

Permalink
Make Data fields in Logger OpModes public (FIRST-Tech-Challenge#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
abidingabi authored Nov 2, 2022
1 parent 57cc92b commit b721133
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,29 @@ public void runOpMode() throws InterruptedException {
DriveView view = new DriveView(hardwareMap);

class Data {
final String type = view.type;
public final String type = view.type;

final List<List<Double>> leftPowerTimes = new ArrayList<>();
final List<List<Double>> leftPowers = new ArrayList<>();
public final List<List<Double>> leftPowerTimes = new ArrayList<>();
public final List<List<Double>> leftPowers = new ArrayList<>();

final List<List<Double>> rightPowerTimes = new ArrayList<>();
final List<List<Double>> rightPowers = new ArrayList<>();
public final List<List<Double>> rightPowerTimes = new ArrayList<>();
public final List<List<Double>> rightPowers = new ArrayList<>();

final List<Double> voltageTimes = new ArrayList<>();
final List<Double> voltages = new ArrayList<>();
public final List<Double> voltageTimes = new ArrayList<>();
public final List<Double> voltages = new ArrayList<>();

final List<Double> encTimes = new ArrayList<>();
final List<List<Integer>> leftEncPositions = new ArrayList<>();
final List<List<Integer>> leftEncVels = new ArrayList<>();
final List<List<Integer>> rightEncPositions = new ArrayList<>();
final List<List<Integer>> rightEncVels = new ArrayList<>();
final List<List<Integer>> parEncPositions = new ArrayList<>();
final List<List<Integer>> parEncVels = new ArrayList<>();
final List<List<Integer>> perpEncPositions = new ArrayList<>();
final List<List<Integer>> perpEncVels = new ArrayList<>();
public final List<Double> encTimes = new ArrayList<>();
public final List<List<Integer>> leftEncPositions = new ArrayList<>();
public final List<List<Integer>> leftEncVels = new ArrayList<>();
public final List<List<Integer>> rightEncPositions = new ArrayList<>();
public final List<List<Integer>> rightEncVels = new ArrayList<>();
public final List<List<Integer>> parEncPositions = new ArrayList<>();
public final List<List<Integer>> parEncVels = new ArrayList<>();
public final List<List<Integer>> perpEncPositions = new ArrayList<>();
public final List<List<Integer>> perpEncVels = new ArrayList<>();

final List<Double> angVelTimes = new ArrayList<>();
final List<List<Double>> angVels = new ArrayList<>();
public final List<Double> angVelTimes = new ArrayList<>();
public final List<List<Double>> angVels = new ArrayList<>();
}

Data data = new Data();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ public void runOpMode() throws InterruptedException {
DriveView view = new DriveView(hardwareMap);

class Data {
final String type = view.type;
public final String type = view.type;

final List<List<Double>> powerTimes = new ArrayList<>();
final List<List<Double>> powers = new ArrayList<>();
public final List<List<Double>> powerTimes = new ArrayList<>();
public final List<List<Double>> powers = new ArrayList<>();

final List<Double> voltageTimes = new ArrayList<>();
final List<Double> voltages = new ArrayList<>();
public final List<Double> voltageTimes = new ArrayList<>();
public final List<Double> voltages = new ArrayList<>();

final List<Double> encTimes = new ArrayList<>();
final List<List<Integer>> forwardEncPositions = new ArrayList<>();
final List<List<Integer>> forwardEncVels = new ArrayList<>();
public final List<Double> encTimes = new ArrayList<>();
public final List<List<Integer>> forwardEncPositions = new ArrayList<>();
public final List<List<Integer>> forwardEncVels = new ArrayList<>();
}

Data data = new Data();
Expand Down

0 comments on commit b721133

Please sign in to comment.