Fix for creating a node at periapsis.
This commit is contained in:
parent
d27d63fb80
commit
8f2cb8cf5f
|
@ -22,9 +22,10 @@ function CreateCircularizationNode {
|
|||
parameter nodeAtPeriapsis is false.
|
||||
|
||||
local dt is choose SHIP:ORBIT:ETA:PERIAPSIS if nodeAtPeriapsis else SHIP:ORBIT:ETA:APOAPSIS.
|
||||
local a is choose SHIP:ORBIT:PERIAPSIS if nodeAtPeriapsis else SHIP:ORBIT:APOAPSIS.
|
||||
local t is TIME + dt.
|
||||
|
||||
local Vc is sqrt(SHIP:BODY:MU/(SHIP:BODY:RADIUS + SHIP:ORBIT:APOAPSIS)).
|
||||
local Vc is sqrt(SHIP:BODY:MU/(SHIP:BODY:RADIUS + a)).
|
||||
local dV is Vc - VelocityAt(SHIP, t):ORBIT:MAG.
|
||||
local n is Node(t, 0, 0, dV).
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user