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).