Guest User

AnthonyKOS1

a guest
Dec 10th, 2015
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. Set SASMODE To "STABILITYASSIST".
  2. SAS on.
  3. RCS on.
  4. Lights on.
  5. Lock Throttle to 0.
  6. Gear off.
  7. Toggle Brakes.
  8.  
  9. //Setting the angle and roll
  10. Function Tilt {
  11. Parameter minimum_altitude.
  12. Parameter angle.
  13.  
  14. Wait Until Altitude > minimum_altitude.
  15. Print "Locking heading to " + angle + " degrees".
  16. Lock Steering To Heading(90, angle).
  17. }
  18.  
  19. When Groundspeed >= 300 Then {
  20. Lock Throttle To 0.75.
  21. Preserve.
  22. }
  23. When Groundspeed >= 500 Then {
  24. Lock Throttle to 0.45.
  25. Preserve.
  26. }
  27.  
  28. When Groundspeed >= 600 Then {
  29. Lock Throttle to 0.25.
  30. Preserve.
  31. }
  32.  
  33. When Maxthrust = 0 And Altitude > 200 And Stage:Number > 1 Then {
  34. Lock Throttle to 0.
  35. Stage.
  36. Lock Throttle to 1.
  37. Preserve.
  38. }
  39.  
  40. When Ship:Apoapsis = 75000 Then {
  41. Lock Throttle to 0.
  42. }
  43.  
  44. Print "Launch Program Initiated".
  45. Tilt(0, 90).
  46. Lock Throttle to 1.
  47.  
  48. Wait 2. Print "Launching!".
  49. Stage.
  50.  
  51. Tilt(200, 85).
  52. Tilt(3000, 75).
  53. SAS off.
  54. Tilt(10000, 65).
  55. Tilt(20000, 50).
  56. Tilt(30000, 35).
  57.  
  58. Wait Until ETA:APOAPSIS < 20.
  59. Tilt(90, 0). Wait 5. Lock Throttle To 1.
  60.  
  61. Wait Until PERIAPSIS = 72000.
  62. Lock Throttle To 0.
  63. Wait 5.
  64. SAS on.
  65. Set Ship:Control:Pilotmainthrottle to 0.
  66. Shutdown.
Advertisement
Add Comment
Please, Sign In to add comment