Advertisement
sumguytwitches

Rover Extra Info

Apr 5th, 2023 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lock gcdist to vang(tgt:position - body:position, -body:position)*constant:degtorad*body:radius.
  2. lock gcspeed to vdot(vxcl(up:vector, velocity:surface), vxcl(up:vector, tgt:position):normalized).
  3. lock tareta to gcdist / gcspeed.
  4.  
  5. set sgfirst to 0.
  6. set sgp to 0.
  7. set sggo to true.
  8. set sgf to 8.
  9. set sgpr to 4.
  10. function sgd {
  11. parameter l. parameter d.
  12. If l:length > sgpr set sgpr to l:length.
  13. print (l:padleft(sgpr) + ": " +round(d,2)):padright(terminal:width) at (0, sgp).
  14. set sgp to sgp + 1.
  15. }.
  16. set sggo to false. wait 1. set sggo to true.
  17. On round(kuniverse:realtime * sgf) {
  18. set sgp to sgfirst.
  19.  
  20. sgd("GC Distance", gcdist ).
  21. sgd("GC speed", gcspeed ).
  22. sgd("ETA (minutes)", tareta/60).
  23. sgd("Vertical Speed", ship:verticalspeed).
  24. sgd("alt radar",alt:radar).
  25. sgd("groundspeed",groundspeed).
  26. sgd("Ox",ship:oxidizer).
  27. sgd("Lq",ship:liquidfuel).
  28.  
  29. Print "":padright(terminal:width) at (0,sgp).
  30. return sggo.
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement