Advertisement
space_is_hard

bootCMLS

Apr 16th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.20 KB | None | 0 0
  1. //=====CMLS Boot Script=====
  2. //~~bootCMLS.ks~~
  3.  
  4. //Boot file that is loaded onto second stage computer at
  5. //rollout.
  6. //
  7. //Ensures that CMLSlaunch is run from the archive, that
  8. //all files in the CMLS directory are compiled to reflect
  9. //their most recent uploaded versions, and that all library
  10. //functions are built and loaded.
  11.  
  12. SWITCH TO 0.
  13.  
  14. CLEARSCREEN.
  15. SET TERMINAL:WIDTH TO 50.
  16. SET TERMINAL:HEIGHT TO 25.
  17.  
  18. //~~~~~Compiling~~~~~ #open
  19.  
  20. COMPILE CMLSlaunch.ks.
  21. COMPILE CMLS1run.ks.
  22. COMPILE CMLS2run.ks.
  23. COMPILE CMLSeng.ks.
  24. COMPILE CMLSsburn.ks.
  25.  
  26. COMPILE LIB_LAZcalc.ks.
  27. COMPILE LIB_PID.ks.
  28. COMPILE LIB_CMLSeng.ks.
  29.  
  30. PRINT "All CMLS files accounted for and compiled.".
  31. WAIT 0.25.
  32.  
  33. //compiling #close
  34.  
  35. //~~~~~Build Library~~~~~ #open
  36.  
  37. RUN LIB_LAZcalc.ksm.
  38. RUN LIB_PID.ksm.
  39. RUN LIB_CMLSeng.ksm.
  40.  
  41. PRINT "Libraries built.".
  42. PRINT " ".
  43. WAIT 0.25.
  44.  
  45. //build library #close
  46.  
  47. //~~~~~User instructions~~~~~ #open
  48.  
  49. PRINT "To initiate launch script, type:".
  50. PRINT "RUN CMLSlaunch.ksm([TAlt],[TInc],[Node]).".
  51. PRINT "TAlt = Desired altitude of final circular orbit;".
  52. PRINT "TInc = Desired inclination of final orbit;".
  53. PRINT "Node = (A)scending or (D)escending, in quotes.".
  54.  
  55. //#close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement