Beispiel #1
0
def main():
    cx = ksp.connect(name='Trajectory')
    ksp.set_globals(cx)
    # system.checkvessel("Surveyor 1")
    # warp.warpday()
    # setup staging
    try:
        staging = STAGING_DICT[SC.active_vessel.name]
    except KeyError:
        staging = stock.default
    stage = Thread(target=staging, args=["Staging", ])
    # launch to orbit
    stage.start()
    launch.ltoa()
    system.tts()
Beispiel #2
0
#! /usr/bin/env python3
# -*- coding: cp1252 -*-
# created on May 22, 2014 by Andreas

import importlib

import krpc

from toolkit import ksp
from toolkit import nodes


cx = ksp.connect(name = 'Console')
ksp.set_globals(cx)
low_orbit = 80000
importlib.reload(nodes); nd = nodes.apoapsis(low_orbit)
importlib.reload(nodes); nodes.execute(nd)

# vec = krpc.schema.Geometry.Vector3()
# cx = krpc.connect(name = 'Console')
# print('Connected to server, version', cx.krpc.get_status().version)

space_center = cx.space_center
vessel = SC.active_vessel
orbit = vessel.orbit
control = vessel.control
auto_pilot = vessel.auto_pilot
flight = vessel.flight()
resources = vessel.resources

print(vessel.name)