Advertisement
wirawafiy1

Test

Jun 5th, 2023 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. //launch_inc.ks
  2. //Author: Ryan Giarusso
  3. //kOS Version: 0.17 (last tested version is not current version! Use at your own risk!)
  4. //First Created: 01MAY2016
  5. //Last Updated: 17SEP2016
  6. //Description: Launches craft into a target orbital plane to a specified apoapsis, using timewarp.
  7. //Honest Admission: The interesting stuff is on lines 136-145 and 166-169. The rest is just a launch script based heavily
  8. // on the work of @KK4TEE and @gisikw. Thanks guys!
  9.  
  10. set ship:control:pilotmainthrottle to 0. //Don't accidentally leave the pad early.
  11.  
  12. //Definitions
  13. local TARGET_ALTITUDE is 100000.
  14. local TARGET_ORBITABLE is "Minmus".
  15.  
  16. //Gravity Turn shaped as a * pct_alt^b + c
  17. local GT_A is -115.23935.
  18. local GT_B is 0.4095114.
  19. local GT_C is 88.963.
  20.  
  21. //Helper Functions
  22. function Orbitable () {
  23. parameter tgt.
  24.  
  25. list targets in vessels:
  26. for vs in vessels {
  27. if vs:name = tgt { return vessel (tgt).
  28. }
  29. } return body (tgt).
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement