Advertisement
Guest User

Trial One

a guest
Mar 2nd, 2018
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. print('Program Started');
  2.  
  3. import math
  4. import krpc
  5. import time
  6.  
  7. #SETUP
  8. conn = krpc.connect(name='SubOrbitalFlight');
  9. vessel = conn.space_center.active_vessel;
  10.  
  11. ut = conn.add_stream(getattr, conn.space_center, 'ut');
  12.  
  13.  
  14.  
  15. vessel.control.rcs = True;
  16.  
  17. vessel.auto_pilot.engage();
  18. vessel.auto_pilot.target_direction = (0, 0, 1);
  19. vessel.auto_pilot.wait();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement