Improve re-entry code so that it works properly over water.
This commit is contained in:
parent
2601db8fd4
commit
dd3d741cff
|
@ -11,6 +11,10 @@ function PerformReentry {
|
|||
|
||||
print "Reentry mode activated. Control permanently locked.".
|
||||
|
||||
local normal is VCrs(SHIP:SRFPROGRADE:FOREVECTOR, SHIP:UP:FOREVECTOR).
|
||||
lock STEERING to normal.
|
||||
wait until Vang(SHIP:FACING:FOREVECTOR, normal) < 5.
|
||||
|
||||
// stage until only stage 0 remains.
|
||||
until STAGE:NUMBER <= 1 {
|
||||
stage.
|
||||
|
@ -22,9 +26,8 @@ function PerformReentry {
|
|||
Antennas(false).
|
||||
}
|
||||
|
||||
when SHIP:ALTITUDE - SHIP:GEOPOSITION:TERRAINHEIGHT < 2500 then {
|
||||
CHUTES on.
|
||||
}
|
||||
wait until SHIP:ALTITUDE - Max(SHIP:GEOPOSITION:TERRAINHEIGHT, 0) < 2500.
|
||||
CHUTES on.
|
||||
|
||||
wait until false.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user