diff --git a/build.gradle b/build.gradle index 3b1fc65..220380f 100644 --- a/build.gradle +++ b/build.gradle @@ -35,7 +35,7 @@ dependencies { } group = 'org.team5499' -version = '2.10.1' +version = '2.10.2' task sourcesJar(type: Jar) { diff --git a/src/main/kotlin/org/team5499/monkeyLib/path/Path.kt b/src/main/kotlin/org/team5499/monkeyLib/path/Path.kt index cc032b8..e2021fe 100644 --- a/src/main/kotlin/org/team5499/monkeyLib/path/Path.kt +++ b/src/main/kotlin/org/team5499/monkeyLib/path/Path.kt @@ -27,6 +27,12 @@ class Path( val endPose: Pose2dWithCurvature get() = Pose2dWithCurvature(points.get(pathLength - 1)) + val startVelocity: Double + get() = velocities.get(0) + + val endVelocity: Double + get() = velocities.get(velocities.size - 1) + init { if (points.size != velocities.size) { println("coords length: ${points.size}, velo length: ${velocities.size}")