Advertisement
sumguytwitches

Athena Takeoff

Oct 26th, 2020
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ship:dockingports[1]:controlfrom().
  2. lights off.
  3. list engines in es.
  4. for e in es e:activate.
  5. set es to ship:partsdubbedpattern("wolf").
  6. for e in es set e:gimbal:limit to 6.
  7. lock throttle to 0.
  8. bays off.
  9. rcs on.
  10. toggle ag1.
  11. brakes off.
  12. set servos to ship:modulesnamed("ModuleRoboticRotationServo").
  13. for s in servos {
  14. s:setfield("damping", 80).
  15. s:setfield("traverse rate", 40).
  16. s:setfield("locked",false).
  17. s:setfield("motor",true).
  18. }
  19. function tilt2 {
  20. parameter tlt is 0.
  21. for s in servos s:setfield("target angle", tlt).
  22. }.
  23. tilt2(20).
  24. set x to 90.
  25. set p to 20.
  26. lock steering to heading(x, p).
  27. when true then { tilt2(min(max(10,alt:Radar), 90)). return alt:Radar < 2000. }.
  28. wait 1.
  29. lights on.
  30. lock roll to max(-5,min(5, body:geopositionof(heading(x,0):vector):bearing)).
  31. lock steering to heading(x, p, -roll).
  32. lock throttle to 1.
  33. when alt:radar > 20 then gear off.
  34. when alt:Radar > 2000 then { rcs off. for e in es if e:position:x > 0 set e:gimbal:limit to 100. }
  35. when apoapsis > 55000 then lock throttle to 0.
  36. when apoapsis > 40000 then { lock steering to prograde. for e in es if e:position:x > 0 set e:gimbal:limit to 100. }
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement