Created
February 11, 2017 02:21
-
-
Save darkbushido/281e1d7ecca7cd1ec1332e6e60eef1e0 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
function landing_pos { return latlng(p["LND"]["LatLng"]:lat,p["LND"]["LatLng"]:lng). } | |
function R_ship { return ship:body:position. } | |
function angle_diff_h { return VANG(-R_ship(), landing_pos():position - R_ship()). } | |
function dist_diff_h { return (angle_diff_h()/360) * 2 * constant:pi()*R_ship():mag. } | |
function velocity_h_norm { return VCRS(VCRS(R_ship(),ship:velocity:orbit),R_ship()):normalized. } | |
function speed_h { return VDOT(velocity_h_norm(),ship:velocity:orbit). } | |
function position_speed_h { return landing_pos():altitudevelocity(altitude):orbit:mag. } | |
function speed_diff_h { return speed_h() - position_speed_h(). } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment