Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set steerHeading to 90.
- set ecc to (((ship:apoapsis+body:radius)+(ship:periapsis+body:radius))/((ship:apoapsis+body:radius)-(ship:periapsis+body:radius))).
- wait until eta:apoapsis <= 60.
- set warp to 0.
- print "Circularization.".
- wait until eta:apoapsis < 20.
- lock steering to heading(steerHeading, 0).
- UNTIL ecc <= 0.01 {
- if eta:apoapsis < 20 {
- lock steering to heading(steerHeading, 0).
- }
- else if eta:apoapsis <= 10 {
- if ship:verticalspeed < -4 {
- lock steering to heading(steerHeading, 10).
- }
- if ship:verticalspeed < -2 {
- lock steering to heading(steerHeading, 5).
- }
- if ship:verticalspeed > 2 {
- lock steering to heading(steerHeading, -5).
- }
- if ship:verticalspeed > 4 {
- lock steering to heading(steerHeading, -10).
- }
- }
- else if ship:verticalspeed <= 0 {
- lock throttle to 1.
- }
- else if ship:periapsis >= (ship:apoapsis*0.70) {
- lock throttle to 0.7.
- }
- else if ship:periapsis >= (ship:apoapsis*0.85) {
- lock throttle to 0.25.
- }
- else if ship:periapsis >= (ship:apoapsis*0.95) {
- lock throttle to 0.
- lock steering to heading(steerHeading,0).
- print "Circularization complete.".
- }
- WAIT 0.001. // This line is Vitally Important.
- }
- print "Orbit eccentriccity = " + ecc.
- wait 2.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement