Skip to content

Commit

Permalink
Optimized for jar extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Roshan Raj committed Oct 8, 2018
1 parent a44778c commit bf8c021
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 225 deletions.
1 change: 0 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="lib/xchart-3.5.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
10 changes: 0 additions & 10 deletions bin/.gitignore

This file was deleted.

Binary file removed bin/Graph$1.class
Binary file not shown.
Binary file removed bin/Graph.class
Binary file not shown.
Binary file removed bin/Main.class
Binary file not shown.
Binary file added bin/PivotProfileGenerator.class
Binary file not shown.
Binary file added bin/StraightProfileGenerator.class
Binary file not shown.
Binary file modified bin/Trajectory.class
Binary file not shown.
Binary file added bin/WheelTrajectory.class
Binary file not shown.
Binary file removed lib/xchart-3.5.0.jar
Binary file not shown.
120 changes: 0 additions & 120 deletions src/Graph.java

This file was deleted.

8 changes: 0 additions & 8 deletions src/Main.java

This file was deleted.

58 changes: 0 additions & 58 deletions src/Trajectory.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,62 +62,4 @@ public Trajectory copy() {
return cloned;
}

public void printContent() {
printContent(this.segments);
}

public static void printContent(Segment[] segs) {
for (Segment i : segs) {
System.out.print("Dt " + i.getTime());
System.out.print(" Velocity " + i.getVelocity());
System.out.print(" Acceleration " + i.getAcceleration());
System.out.print(" Postion " + i.getPosition());
System.out.print(" Heading " + i.getHeading());
System.out.println();
}

}

public void graphVelocity() {
double[] vel = new double[length()];
double[] time = new double[length()];
for (int i = 0; i < vel.length; i++) {
vel[i] = get(i).getVelocity();
time[i] = get(i).getTime();
}
new Graph("Time", "Velocity", time, vel).run();

}

public void graphForwardvsHorizontal() {
double[] forward = new double[length()];
double[] horizontal = new double[length()];
for (int i = 0; i < forward.length; i++) {
forward[i] = get(i).getForward();
horizontal[i] = get(i).getHorizontal();
}

new Graph("Horizontal", "Forward", horizontal, forward).run();
}

public void graphPosition() {
double[] pos = new double[length()];
double[] time = new double[length()];
for (int i = 0; i < pos.length; i++) {
pos[i] = get(i).getPosition();
time[i] = get(i).getTime();
}
new Graph("Time", "Position", time, pos).run();
}

public void graphAcceleration() {
double[] accel = new double[length()];
double[] time = new double[length()];
for (int i = 0; i < accel.length; i++) {
accel[i] = get(i).getAcceleration();
time[i] = get(i).getTime();
}
new Graph("Time", "Acceleration", time, accel).run();
}

}
28 changes: 0 additions & 28 deletions src/WheelTrajectory.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,4 @@ public Trajectory getLeftTrajectory() {
public Trajectory getRightTrajectory() {
return trajectories[1];
}

public void graphForwardvsHorizontal() {
double[] forward = new double[getLeftTrajectory().length()];
double[] horizontal = new double[getLeftTrajectory().length()];
double[] forward2 = new double[getRightTrajectory().length()];
double[] horizontal2 = new double[getRightTrajectory().length()];
for (int i = 0; i < forward.length; i++) {
forward[i] = getLeftTrajectory().get(i).getForward();
horizontal[i] = getLeftTrajectory().get(i).getHorizontal();
forward2[i] = getRightTrajectory().get(i).getForward();
horizontal2[i] = getRightTrajectory().get(i).getHorizontal();
}

new Graph("Horizontal", "Forward", horizontal, forward, horizontal2, forward2).run();
}

public void graphVelocities() {
double[] time = new double[getLeftTrajectory().length()];
double[] velLeft = new double[getLeftTrajectory().length()];
double[] velRight = new double[getRightTrajectory().length()];
for (int i = 0; i < time.length; i++) {
time[i] = getLeftTrajectory().get(i).getTime();
velLeft[i] = getLeftTrajectory().get(i).getVelocity();
velRight[i] = getRightTrajectory().get(i).getVelocity();
}

new Graph("Velocity", "Time", time, velLeft, time, velRight).run();
}
}

0 comments on commit bf8c021

Please sign in to comment.