Use own orbital_velocity function from lib/orbital_equations instead of built-in velocityat().

This commit is contained in:
Casper V. Kristensen 2019-03-01 23:04:39 +01:00
parent f8d18b8713
commit 706daf5228
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -32,7 +32,7 @@ function circularize {
local node is NODE(TIME:SECONDS + eta, 0, 0, 0). 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 // 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). 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. add node.
execute_burn(node). execute_burn(node).