Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. MTS - Ascent Autopilot routine "function list":
  2.  
  3. Preflight setup:
  4.  
  5. set heading variable (int) via dialog box
  6.  
  7. Launch:
  8.  
  9. set flight timer (int)
  10. get heading variable
  11. detect start button keypress (key code or in dialog box)
  12. start timer
  13. core thrust: 0% -> 100% in 4 sec
  14. SRB Ignition
  15. wait x seconds (as vehicle wil clear the tower)
  16. initiate roll program
  17.  
  18. Roll program:
  19.  
  20. set max time to roll 180 deg
  21. perform roll (rcs in rot mode) on smaller angle to achieve set heading
  22. if set heading = actual heading then initiate pitch program
  23.  
  24.  
  25.  
  26. Pitch program : Time based sequence with IF_THEN in final phase
  27.  
  28. t = flight timer + x + max time to roll 180 deg + 30: pitch 72
  29. t = flight timer + x + max time to roll 180 deg + 40: pitch 66
  30. t = flight timer + x + max time to roll 180 deg + 50: pitch 61
  31. t = flight timer + x + max time to roll 180 deg + 60: pitch 55
  32. t = flight timer + x + max time to roll 180 deg + 70: pitch 50
  33. t = flight timer + x + max time to roll 180 deg + 80: pitch 43
  34. t = flight timer + x + max time to roll 180 deg + 90: pitch 36
  35. t = flight timer + x + max time to roll 180 deg + 100: pitch 29
  36. t = flight timer + x + max time to roll 180 deg + 110: pitch 20
  37. t = flight timer + x + max time to roll 180 deg + 120: pitch 16
  38.  
  39. t = flight timer + x + max time to roll 180 deg + 126 : auto SRB sep
  40.  
  41. t = flight timer + x + max time to roll 180 deg + 130: pitch 16
  42. t = flight timer + x + max time to roll 180 deg + 140: pitch 15
  43. t = flight timer + x + max time to roll 180 deg + 150: pitch 14
  44. t = flight timer + x + max time to roll 180 deg + 180: pitch 13
  45. t = flight timer + x + max time to roll 180 deg + 190:pitch 12
  46. t = flight timer + x + max time to roll 180 deg + 240: pitch -2
  47. t = flight timer + x + max time to roll 180 deg + 330: pitch -10
  48. t = flight timer + x + max time to roll 180 deg + 340: core eng cutoff; stage sep
  49. t = flight timer + x + max time to roll 180 deg + 351: stage 2 ignition
  50. t = flight timer + x + max time to roll 180 deg + 355: pitch 1
  51.  
  52. get APA and PEA
  53. if APA - PEA < 100 then thrust 50%
  54. if APA - PEA < 40 then thrust 20%
  55. if APA - PEA < 10 then thrust 0%
  56.  
  57. After initial orbit insertion shuttle stays docked to not yet empty second stage waiting for first GTO insertion burn.
  58.  
  59. It would be great if can be done from shuttle focus.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement