From 706daf5228c311ace7eafe1598baabc1adc392a7 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Fri, 1 Mar 2019 23:04:39 +0100 Subject: [PATCH] Use own orbital_velocity function from lib/orbital_equations instead of built-in velocityat(). --- lib/orbital_maneuvers.ks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/orbital_maneuvers.ks b/lib/orbital_maneuvers.ks index 2c41059..fbcfaf2 100644 --- a/lib/orbital_maneuvers.ks +++ b/lib/orbital_maneuvers.ks @@ -32,7 +32,7 @@ function circularize { local node is NODE(TIME:SECONDS + eta, 0, 0, 0). // Prograde burn magnitude is the difference between the required velocity to achieve circular orbit at target's altitude and our actual velocity at the target local required_velocity is orbital_velocity_circular(target). - set node:prograde to required_velocity - velocityat(SHIP, TIME:seconds + eta):orbit:mag. + set node:prograde to required_velocity - orbital_velocity(target). add node. execute_burn(node).