Use own orbital_velocity function from lib/orbital_equations instead of built-in velocityat().
This commit is contained in:
parent
f8d18b8713
commit
706daf5228
|
@ -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).
|
||||||
|
|
Loading…
Reference in a new issue