Petra Lamborn 6 年 前
コミット
bd0f6806a9
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2
    1
      plane.py

+ 2
- 1
plane.py ファイルの表示

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