Petra Lamborn 6 anos atrás
pai
commit
65cab680fd
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4
    1
      plane.py

+ 4
- 1
plane.py Ver arquivo

1
 # A script that flies a plane
1
 # A script that flies a plane
2
 import time
2
 import time
3
 import krpc
3
 import krpc
4
-conn = krpc.connect(name='Plane autopilot')
4
+
5
+# The IP of the KRPC server (if not same computer)
6
+remote = '192.169.1.10'
7
+conn = krpc.connect(name='Plane autopilot', remote)
5
 vessel = conn.space_center.active_vessel
8
 vessel = conn.space_center.active_vessel
6
 body = vessel.orbit.body
9
 body = vessel.orbit.body
7
 r_frame = body.reference_frame
10
 r_frame = body.reference_frame