Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. set landing_arc to 97.//experimentally determined value
  2. set ksc_longitude to -74.8.
  3. set ship_omega to constant:radtodeg * sqrt(ship:body:mu/ship:orbit:semimajoraxis^3).
  4. set body_omega to constant:radtodeg * 2*constant:pi / ship:body:rotationperiod.//compensating for the rotation of kerbin
  5. set arc_remaining to (ksc_longitude-landing_arc-ship:longitude).
  6. if arc_remaining < 0 {set arc_remaining to arc_remaining + 360.}
  7. add node(time:seconds+arc_remaining/(ship_omega-body_omega), 0, 0, -80).
  8.  
  9. run exec.
  10. run landing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement