Created
November 21, 2016 20:11
-
-
Save anonymous/837910f32b318d57c21d24c6cddb9a8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clearscreen. | |
sas on. | |
stage. | |
lock distance to ship:altitude + ship:body:radius. | |
lock weight to ship:mass * ship:body:mu / distance / distance. | |
lock twr to ship:availablethrust / weight. | |
lock atwr to twr / max(0.00001, cos(vang(ship:facing:vector,ship:up:vector))). | |
lock vspeed to 5 - alt:radar. | |
when true then { | |
print("alt: " + alt:radar) at (0, 1). | |
print("twr: " + twr) at (0, 2). | |
print("atwr: " + atwr) at (0, 3). | |
preserve. | |
} | |
lock throttle to ((vspeed - ship:verticalspeed) + 1) / atwr. | |
wait until false. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment