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

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

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