HvrdlS

boostback.ks

Jul 23rd, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. set done to false.
  2. until done {
  3. set STEERINGMANAGER:MAXSTOPPINGTIME to 15.
  4. set STEERINGMANAGER:PITCHPID:KD to 1.
  5. set STEERINGMANAGER:YAWPID:KD to 1.
  6. set landingZone to vessel("My Mum Wonders About Me"):geoposition. //Target
  7. lock lngoff to (landingZone:lng - addons:tr:impactpos:lng) * 10472.
  8. lock latoff to (landingZone:lat - addons:tr:impactpos:lat) * 10472.
  9. set rm to 1.
  10. if rm = 1 {
  11. sas off.
  12. rcs on.
  13. toggle ag7. //Turn off all engines, but left the center
  14. toggle ag6. //Turn on two aditional engines
  15. lock steering to heading(;andingZone:heading, 180).
  16. wait 10.
  17. lock throttle to 1.
  18. print lngoff.
  19. rcs off.
  20. when latoff > 20 then {
  21. lock steering to heading(landingZone:heading+10, 180).
  22. preserve.
  23. }
  24.  
  25. when latoff < -20 then {
  26. lock steering to heading(landingZone:heading-10, 180).
  27. preserve.
  28. }
  29.  
  30. wait until lngoff > -4500.
  31. toggle brakes.
  32. lock throttle to 0.
  33. toggle ag6. //Turn off two engines
  34. wait 2.
  35. set done to true.
  36. set rm to 0.
  37. }
  38. }
  39.  
  40. unlock steering.
  41. unlock throttle.
  42. wait 3.
  43. print "Bb completed!".
  44. rcs on.
Advertisement
Add Comment
Please, Sign In to add comment