Guest User

geostat.ks

a guest
Jan 4th, 2015
612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LIST ENGINES IN engines.
  2.  
  3.  
  4.  
  5. clearscreen.
  6. print "
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.                      ###
  22.                      # #
  23.                      ###
  24.                        #
  25.                      ### ".
  26. wait 1.
  27. clearscreen.
  28. print "
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.                      ###
  44.                      # #
  45.                      ###
  46.                      # #
  47.                      ### ".
  48. wait 1.
  49. clearscreen.
  50. print "
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.                      ###
  66.                        #
  67.                        #
  68.                        #
  69.                        # ".
  70. wait 1.
  71. clearscreen.
  72. print "
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.                      ###
  88.                      #  
  89.                      ###
  90.                      # #
  91.                      ### ".
  92. wait 1.
  93. clearscreen.
  94. print "
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.                      ###
  110.                      #  
  111.                      ###
  112.                        #
  113.                      ### ".
  114. wait 1.
  115. clearscreen.
  116. print "
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.                      # #
  132.                      # #
  133.                      ###
  134.                        #
  135.                        # ".
  136. wait 1.
  137. clearscreen.
  138. print "
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.                      ###
  154.                        #
  155.                      ###
  156.                        #
  157.                      ### ".
  158. wait 1.
  159. clearscreen.
  160. print "
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.                      ###
  176.                        #
  177.                      ###
  178.                      #  
  179.                      ### ".
  180. wait 1.
  181. lock steering to up + R(0,0,180).
  182. clearscreen.
  183. print "
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.                        #
  199.                        #
  200.                        #
  201.                        #
  202.                        # ".
  203. wait 1.
  204. lock throttle to 1.
  205. clearscreen.
  206. print "
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.                      ###
  222.                      # #
  223.                      # #
  224.                      # #
  225.                      ### ".
  226. wait 1.
  227. clearscreen.
  228. stage.
  229. print "
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.                                                  
  245.             #    #  # # ###  ## # #  #  
  246.             #   # # # # # # #   # #  #  
  247.             #   ### # # # # #   ###  #  
  248.             #   # # # # # # #   # #    
  249.             ### # # ### # #  ## # #  # ".
  250. wait 1.
  251. clearscreen.
  252.  
  253. set orbitalt to 2868.75*1000.
  254.  
  255. until altitude > 10000
  256. {
  257. clearscreen.
  258. print "##################CONTROL PANEL##################".
  259. print " First step: reach middle atmosphere.".
  260. print " ".
  261. print "      ALTITUDE: " + round(ALTITUDE, 2).
  262. print "     TO GROUND: " + round(ALT:RADAR,2).
  263. print "-------------------------------------------------".
  264. print "VERTICAL SPEED: " + round(VERTICALSPEED,2).
  265. print "      APOAPSIS: " + round(APOAPSIS,2).
  266. wait .5.
  267. if maxthrust = 0 { stage. print "Staging...". wait 2. stage.}
  268.  
  269. SET stageneeded TO false.
  270. FOR eng IN engines {
  271.    
  272.     if eng:flameout and eng:thrust = 0
  273.     {
  274.         set stageneeded to true.
  275.     }
  276. }.
  277. if stageneeded {stage. print "Stage separeted.". wait 2. list engines in engines.}.
  278. }
  279. lock steering to up + R(0,0,180) + R(0,-30,0).
  280.  
  281. until altitude > 20000
  282. {
  283. clearscreen.
  284. print "##################CONTROL PANEL##################".
  285. print " Second step: begin gravity turn.".
  286. print " ".
  287. print "      ALTITUDE: " + round(ALTITUDE, 2).
  288. print "     TO GROUND: " + round(ALT:RADAR,2).
  289. print "-------------------------------------------------".
  290. print "VERTICAL SPEED: " + round(VERTICALSPEED,2).
  291. print "      APOAPSIS: " + round(APOAPSIS,2).
  292. wait .5.
  293. if maxthrust = 0 { stage. print "Staging...". wait 2. stage.}
  294.  
  295. SET stageneeded TO false.
  296. FOR eng IN engines {
  297.    
  298.     if eng:flameout and eng:thrust = 0
  299.     {
  300.         set stageneeded to true.
  301.     }
  302. }.
  303. if stageneeded {stage. print "Stage separeted.". wait 2. list engines in engines.}.
  304. }
  305. lock steering to up + R(0,0,180) + R(0,-60,0).
  306.  
  307. until apoapsis > orbitalt-orbitalt/5
  308. {
  309. clearscreen.
  310. print "##################CONTROL PANEL##################".
  311. print " Third step: target apoapsis = "+ round(orbitalt/1000,0) + "km".
  312. print " ".
  313. print "      ALTITUDE: " + round(ALTITUDE, 2).
  314. print "     TO GROUND: " + round(ALT:RADAR,2).
  315. print "-------------------------------------------------".
  316. print "VERTICAL SPEED: " + round(VERTICALSPEED,2).
  317. print "      APOAPSIS: " + round(APOAPSIS,2).
  318. wait .5.
  319. if maxthrust = 0 { stage. print "Staging...". wait 2. stage.}
  320.  
  321. SET stageneeded TO false.
  322. FOR eng IN engines {
  323.    
  324.     if eng:flameout and eng:thrust = 0
  325.     {
  326.         set stageneeded to true.
  327.     }
  328. }.
  329. if stageneeded {stage. print "Stage separeted.". wait 2. list engines in engines.}.
  330. }
  331. clearscreen.
  332. print "Wait please...".
  333.  
  334. lock throttle to 0.3.
  335. wait until apoapsis > orbitalt-orbitalt/10.
  336. lock throttle to 0.05.
  337. wait until apoapsis >= orbitalt-orbitalt/20.
  338. lock throttle to 0.01.
  339. wait until apoapsis >= orbitalt.
  340.  
  341. print "ENGINE OFF".
  342. lock throttle to 0.
  343. print "STANDBY UNTIL APOAPSIS.".
  344. wait until altitude > 76000.
  345.  
  346. print "Extending solar panels...".
  347. PANELS ON.
  348.  
  349. print "Start orbit adjustament program...".
  350.  
  351. set orbitalvelocity to sqrt(((3.5316*10^12)/(orbitalt+600000)^2)*(600000+orbitalt)).
  352.  
  353. print "Orbital Velocity = " + round(orbitalvelocity,1) + "m/s".
  354.  
  355. SET deltav TO orbitalvelocity-(velocityat(ship, time:seconds+(eta:apoapsis)):orbit:mag).
  356.  
  357. SET node TO NODE(time:seconds+eta:apoapsis, 0, 0, deltav).
  358. ADD node.
  359.  
  360. print "Maneuver node planned.".
  361.  
  362. lock throttle to 0.
  363. unlock throttle.
  364. unlock steering.
  365.  
  366. run execnode.
  367.  
  368. lock throttle to 0.
  369. unlock throttle.
  370. unlock steering.
Advertisement
Add Comment
Please, Sign In to add comment