from time import sleep import numpy as np from simple_pid import PID import krpc conn = krpc.connect() sc = conn.space_center vessel = sc.active_vessel docking_part = vessel.parts.root.children[0].children[10].children[0].children[0].children[0].children[0] target = sc.target_vessel mj = conn.mech_jeb sa = mj.smart_ass reference_frame = sc.ReferenceFrame.create_relative(target.reference_frame, rotation=(1., 0., 0., 0.)) conn.drawing.add_direction((0, 1, 0), reference_frame)