misc tweaks
This commit is contained in:
@@ -118,7 +118,7 @@ local function CreateCircularizationNode{
|
||||
|
||||
wait until altitude > 80000.
|
||||
local burnDv is CalculateCircularizationDV(tgt, orbit:semimajoraxis).
|
||||
set circNode to Node(time:seconds + eta:apoapsis, 0, 0, burnDv).
|
||||
local circNode is Node(time:seconds + eta:apoapsis, 0, 0, burnDv).
|
||||
add circNode.
|
||||
wait 0.01.
|
||||
lock steering to circNode:burnvector.
|
||||
@@ -126,9 +126,11 @@ local function CreateCircularizationNode{
|
||||
wait until circNode:eta <= burnDuration /2.
|
||||
lock throttle to 1.
|
||||
wait until nextNode:deltav:mag <= 10.
|
||||
lock throttle to 0.5.
|
||||
lock throttle to 0.25.
|
||||
wait until NEXTNODE:deltav:mag <= 1.
|
||||
unlock steering.
|
||||
remove nextNode.
|
||||
wait 0.01.
|
||||
lock throttle to 0.
|
||||
wait until throttle = 0.
|
||||
}
|
||||
|
||||
@@ -155,7 +155,6 @@ declare function CalculateTimeToImpact{
|
||||
parameter tgtAltitude is 0.0.
|
||||
|
||||
if gravity <= 0 or curAltitude <= 0{
|
||||
print "[warn]: invalid altitude or gravity.".
|
||||
return 0.0.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user