Skip to content

Commit

Permalink
Oops left in debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Seggan committed Feb 23, 2024
1 parent 3fb4a86 commit 16d5e68
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ data class Orbit(
val deltaTime = time + deltaTimeForVelocity
val pos1 = position(time)
val pos2 = position(deltaTime)
val w = eccentricAnomaly(time).degrees to eccentricAnomaly(deltaTime).degrees
val z = trueAnomaly(time).degrees to trueAnomaly(deltaTime).degrees
return (pos2.cartesian - pos1.cartesian) / deltaTimeForVelocity.doubleSeconds
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class OrbitTest : CommonTest() {
fun testVelocity() {
fun testVelocityAt(time: Instant, expectedAngle: Angle) {
val vel = orbit.velocity(time)
println(vel)
vel.length.meters shouldBeRoughly visVivaEquation(
orbit.parent.gravitationalParameter,
orbit.radius(orbit.timeOfPeriapsis),
Expand Down

0 comments on commit 16d5e68

Please sign in to comment.