Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //launch_inc.ks
- //Author: Ryan Giarusso
- //kOS Version: 0.17 (last tested version is not current version! Use at your own risk!)
- //First Created: 01MAY2016
- //Last Updated: 17SEP2016
- //Description: Launches craft into a target orbital plane to a specified apoapsis, using timewarp.
- //Honest Admission: The interesting stuff is on lines 136-145 and 166-169. The rest is just a launch script based heavily
- // on the work of @KK4TEE and @gisikw. Thanks guys!
- set ship:control:pilotmainthrottle to 0. //Don't accidentally leave the pad early.
- //Definitions
- local TARGET_ALTITUDE is 100000.
- local TARGET_ORBITABLE is "Minmus".
- //Gravity Turn shaped as a * pct_alt^b + c
- local GT_A is -115.23935.
- local GT_B is 0.4095114.
- local GT_C is 88.963.
- //Helper Functions
- function Orbitable () {
- parameter tgt.
- list targets in vessels:
- for vs in vessels {
- if vs:name = tgt { return vessel (tgt).
- }
- } return body (tgt).
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement