Fix bug uncovered with ground approximation code.
This commit is contained in:
parent
05267b0283
commit
bf31b4133d
|
@ -37,7 +37,7 @@ function Bootstrap {
|
||||||
} else {
|
} else {
|
||||||
set CORE:BOOTFILENAME to "/init".
|
set CORE:BOOTFILENAME to "/init".
|
||||||
}
|
}
|
||||||
// reboot.
|
reboot.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,9 @@ function CreateCircularizationNode {
|
||||||
// REQUIRES a circular orbit.
|
// REQUIRES a circular orbit.
|
||||||
// TODO: it would be great to semi-automate this...
|
// TODO: it would be great to semi-automate this...
|
||||||
function TargetBurnDistance {
|
function TargetBurnDistance {
|
||||||
|
if not HASTARGET {
|
||||||
|
return -1.
|
||||||
|
}
|
||||||
return Sqrt(StoppingDistance()^2 + (SHIP:ORBIT:SEMIMAJORAXIS - SHIP:BODY:RADIUS - TARGET:ALTITUDE)^2).
|
return Sqrt(StoppingDistance()^2 + (SHIP:ORBIT:SEMIMAJORAXIS - SHIP:BODY:RADIUS - TARGET:ALTITUDE)^2).
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user