Advertisement
Guest User

1st Kos Script : Launch, hovering and landing.

a guest
Jan 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. clearscreen.
  2. print "Lancement du programme...".
  3. wait 5.
  4. Print "Lancement dans T-5".
  5. wait 1.
  6. Print "Lancement dans T-4".
  7. wait 1.
  8. Print "Lancement dans T-3".
  9. wait 1.
  10. Print "Lancement dans T-2".
  11. wait 1.
  12. Print "Lancement dans T-1".
  13. lock throttle to 1.
  14. lock steering to up.
  15. stage.
  16.  
  17. WAIT UNTIL ship:altitude > 100.
  18. lock throttle to 0.78.
  19.  
  20. WAIT UNTIL ship:verticalspeed < -0.1. //Position qui lui permet de hovering
  21. lock throttle to 0.87.
  22. print "Hovering".
  23. WAIT 5.
  24. lock throttle to 0.6.
  25.  
  26. WAIT UNTIL ship:verticalspeed < -3. //Si il descend on met à 0.95
  27. lock throttle to 0.95.
  28.  
  29. UNTIL ship:altitude < 93 { //On ralenti si il descend trop vite et si il remonte on baisse les moteurs
  30. IF ship:verticalspeed > -1 {
  31. lock throttle to 0.8.
  32. }
  33. IF ship:verticalspeed < -2 {
  34. lock throttle to 0.95.
  35. }
  36. }
  37.  
  38. IF ship:altitude < 93 { //Quand il est land on arrête le programme
  39. lock throttle to 0.
  40. WAIT 2.5.
  41. }
  42. IF ship:verticalspeed > -1 and ship:groundspeed > -1 { //Si le vaisseau de bouge plus alors le landing réussi sinon il n'est pas reussi
  43. IF ship:verticalspeed < 1 and ship:groundspeed < 1 {
  44. print "Landing reussi !".
  45. } ELSE {
  46. print "Landing failed".
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement