portablejim

ssto-r15-deorbit.ks

Feb 28th, 2021 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. when geoposition:lng > 175 then {
  2. lock throttle to 1.
  3. when periapsis < 30_000 then {
  4. lock throttle to 0.25.
  5. when periapsis < 25_000 then {
  6. lock throttle to 0.
  7. lock steering to lookDirUp(srfretrograde:forevector, sun:position).
  8. brakes on.
  9.  
  10. wait 5.
  11.  
  12. set warp to 2.
  13. when altitude < (body:atm:height + 400) then {
  14. set warp to 0.
  15. set warpmode to "physics".
  16. set warp to 3.
  17. when altitude < 2500 then
  18. {
  19. set warp to 0.
  20. }
  21. }
  22.  
  23.  
  24. when geoposition:lng > -49 and geoposition:lng < -35 then {
  25. print "Near KSC".
  26. if airspeed > 380 {
  27. when airspeed < 385 then {
  28. lock throttle to 0.
  29. }
  30. }
  31.  
  32. }
  33. when geoposition:lng > -48 and geoposition:lng < -35 then {
  34. print "Over KSC".
  35. stage.
  36. }
  37. }
  38. }
  39. }
Add Comment
Please, Sign In to add comment