Petra Lamborn преди 6 години
родител
ревизия
65cab680fd
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4
    1
      plane.py

+ 4
- 1
plane.py Целия файл

@@ -1,7 +1,10 @@
1 1
 # A script that flies a plane
2 2
 import time
3 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 8
 vessel = conn.space_center.active_vessel
6 9
 body = vessel.orbit.body
7 10
 r_frame = body.reference_frame