Skip to content

Commit

Permalink
Setting up initail tests for jerkTesting
Browse files Browse the repository at this point in the history
  • Loading branch information
SPD3 committed Sep 26, 2017
1 parent cf9a707 commit 2ae4dac
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified eclipse-workspace/MotionProfiling/bin/KinematicsTester.class
Binary file not shown.
9 changes: 5 additions & 4 deletions eclipse-workspace/MotionProfiling/src/KinematicsTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void main(String[] args) {
try {
createPositiveTrajectoryGreaterThanTheDistanceCoveredWhileAcceleratingCase();

createPositiveTrajectoryLessThanTwiceTheDistanceCoveredWhileAcceleratingCase();
/*createPositiveTrajectoryLessThanTwiceTheDistanceCoveredWhileAcceleratingCase();
createNegativeTrajectoryGreaterThanDistanceCoveredWhileAcceleratingCase();
Expand Down Expand Up @@ -129,7 +129,7 @@ public static void main(String[] args) {
TestCases10();
createRandomTestCases();
createRandomTestCases();*/
} catch (InvalidDimentionException | InvalidVelocityException | InvalidNextVelocityFromLastAcceleration
| InvalidAccelerationException | InvalidFinalPosition | InvalidTrajectoryLogic e) {
// TODO Auto-generated catch block
Expand All @@ -146,7 +146,8 @@ private static void createPositiveTrajectoryGreaterThanTheDistanceCoveredWhileAc

m_kinematicsSimpler.addPointToPath(myPath, m_kinematicsSimpler.new Point(10));
m_kinematicsSimpler.createTrajectory(myPath, 2.0, 0.5);


printTrajectory(myPath);
checkTrajectoryPath(myPath, kinematicsTester);

}
Expand Down Expand Up @@ -1335,7 +1336,7 @@ public InvalidTrajectoryLogic(String errMessage) {
private static final long serialVersionUID = 1L;

}

private static void printTrajectory(Path Key) {
System.out.println("Trajectory Point: [vel, acc, pos, time]");
for (int i = 0; i < Key.getTrajectoryVector().size(); i++) {
Expand Down

0 comments on commit 2ae4dac

Please sign in to comment.