本文整理汇总了Python中testingtools.launch_vessel_from_vab函数的典型用法代码示例。如果您正苦于以下问题:Python launch_vessel_from_vab函数的具体用法?Python launch_vessel_from_vab怎么用?Python launch_vessel_from_vab使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了launch_vessel_from_vab函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUpClass
def setUpClass(cls):
testingtools.new_save()
testingtools.launch_vessel_from_vab('PartsEngine')
testingtools.remove_other_vessels()
testingtools.set_circular_orbit('Kerbin', 250000)
cls.conn = testingtools.connect(name='TestPartsEngineMSL')
cls.vessel = cls.conn.space_center.active_vessel
cls.parts = cls.vessel.parts
cls.add_engine_data(
'LV-T30 "Reliant" Liquid Fuel Engine',
{'max_thrust': 215000, 'isp': 300})
cls.add_engine_data(
'LV-T45 "Swivel" Liquid Fuel Engine',
{'max_thrust': 200000, 'isp': 320})
cls.add_engine_data(
'LV-N "Nerv" Atomic Rocket Motor',
{'max_thrust': 60000, 'isp': 800})
cls.add_engine_data(
'IX-6315 "Dawn" Electric Propulsion System',
{'max_thrust': 2000, 'isp': 4200})
cls.add_engine_data(
'O-10 "Puff" MonoPropellant Fuel Engine',
{'max_thrust': 20000, 'isp': 250})
cls.add_engine_data(
'RT-10 "Hammer" Solid Fuel Booster',
{'max_thrust': 227000, 'isp': 195})
示例2: setUpClass
def setUpClass(cls):
testingtools.new_save()
testingtools.launch_vessel_from_vab('Basic')
cls.conn = krpc.connect(name='TestFlightAtLaunchpad')
cls.vessel = cls.conn.space_center.active_vessel
cls.conn.testing_tools.remove_other_vessels()
cls.far = cls.conn.space_center.far_available
示例3: setUpClass
def setUpClass(cls):
testingtools.new_save()
testingtools.launch_vessel_from_vab('PartsSolarPanel')
testingtools.remove_other_vessels()
cls.conn = krpc.connect(name='TestPartsLaunchClamp')
cls.vessel = cls.conn.space_center.active_vessel
cls.parts = cls.vessel.parts
示例4: setUpClass
def setUpClass(cls):
testingtools.new_save()
testingtools.launch_vessel_from_vab('PartsDockingPortPreAttachedTo')
testingtools.remove_other_vessels()
cls.conn = krpc.connect(name='TestPartsDockingPortPreAttachedTo')
cls.vessel = cls.conn.space_center.active_vessel
cls.state = cls.conn.space_center.DockingPortState
# Stack is as follows, from top to bottom:
# parts[0] - Pod
# parts[1] - Docking port (facing down)
# parts[2] - Docking port (facing up)
# parts[3] - Tank
# parts[4] - Docking port (facing up)
# parts[5] - Tank
# parts[6] - Docking port (facing down)
# parts[7] - Tank
cls.parts = [cls.vessel.parts.root]
cls.parts.append(filter(lambda p: p.docking_port != None, cls.parts[0].children)[0])
part = cls.parts[-1]
while len(part.children) == 1:
part = part.children[0]
cls.parts.append(part)
cls.port1 = cls.parts[1].docking_port
cls.port2 = cls.parts[2].docking_port
cls.port4 = cls.parts[4].docking_port
cls.port6 = cls.parts[6].docking_port
示例5: setUp
def setUp(self):
testingtools.new_save()
testingtools.launch_vessel_from_vab('PartsDockingPortInFlight')
testingtools.set_circular_orbit('Kerbin', 100000)
testingtools.remove_other_vessels()
self.conn = krpc.connect(name='TestPartsDockingPortInFlight')
self.sc = self.conn.space_center
self.state = self.sc.DockingPortState
示例6: setUpClass
def setUpClass(cls):
testingtools.new_save()
testingtools.launch_vessel_from_vab('Rover')
testingtools.remove_other_vessels()
cls.conn = krpc.connect(name='TestControlRover')
cls.vessel = cls.conn.space_center.active_vessel
cls.control = cls.vessel.control
cls.flight = cls.vessel.flight(cls.vessel.orbit.body.reference_frame)
示例7: setUp
def setUp(self):
self.conn = krpc.connect(name='TestComms')
if not self.conn.space_center.remote_tech_available:
self.skipTest('RemoteTech not installed')
testingtools.new_save()
testingtools.launch_vessel_from_vab('Comms')
testingtools.remove_other_vessels()
self.vessel = self.conn.space_center.active_vessel
示例8: setUpClass
def setUpClass(cls):
testingtools.new_save()
testingtools.launch_vessel_from_vab('PartsDecoupler')
testingtools.remove_other_vessels()
cls.conn = testingtools.connect(name='TestPartsDecoupler')
cls.vessel = cls.conn.space_center.active_vessel
cls.parts = cls.vessel.parts
cls.state = cls.conn.space_center.SolarPanelState
示例9: setUpClass
def setUpClass(cls):
if krpc.connect().space_center.active_vessel.name != 'Parts':
testingtools.new_save()
testingtools.launch_vessel_from_vab('Parts')
testingtools.remove_other_vessels()
cls.conn = krpc.connect(name='TestPartsReactionWheel')
cls.vessel = cls.conn.space_center.active_vessel
cls.parts = cls.vessel.parts
示例10: setUpClass
def setUpClass(cls):
if testingtools.connect().space_center.active_vessel.name != "Parts":
testingtools.new_save()
testingtools.launch_vessel_from_vab("Parts")
testingtools.remove_other_vessels()
cls.conn = testingtools.connect(name="TestPartsReactionWheel")
cls.vessel = cls.conn.space_center.active_vessel
cls.parts = cls.vessel.parts
示例11: setUp
def setUp(self):
testingtools.new_save()
testingtools.launch_vessel_from_vab('PartsParachute')
testingtools.remove_other_vessels()
self.conn = krpc.connect(name='TestPartsParachute')
self.vessel = self.conn.space_center.active_vessel
self.parts = self.vessel.parts
self.state = self.conn.space_center.ParachuteState
示例12: setUpClass
def setUpClass(cls):
testingtools.new_save()
testingtools.launch_vessel_from_vab('PartsRadiator')
testingtools.remove_other_vessels()
cls.conn = krpc.connect(name='TestPartsRadiator')
cls.vessel = cls.conn.space_center.active_vessel
cls.parts = cls.vessel.parts
cls.state = cls.conn.space_center.RadiatorState
示例13: setUpClass
def setUpClass(cls):
testingtools.new_save()
testingtools.launch_vessel_from_vab('Basic')
testingtools.remove_other_vessels()
cls.conn = krpc.connect(name='TestWarpOnLaunchpad')
cls.sc = cls.conn.space_center
cls.vessel = cls.sc.active_vessel
cls.maximum_rails_warp_factor = 7
cls.landed = True
示例14: setUpClass
def setUpClass(cls):
if krpc.connect().space_center.active_vessel.name != 'Parts':
testingtools.new_save()
testingtools.launch_vessel_from_vab('Parts')
testingtools.remove_other_vessels()
cls.conn = krpc.connect(name='TestParts')
cls.vessel = cls.conn.space_center.active_vessel
cls.parts = cls.vessel.parts
cls.expectedAmbientTemperature = 273+20
示例15: setUpClass
def setUpClass(cls):
if testingtools.connect().space_center.active_vessel.name != 'PartsLandingGear':
testingtools.new_save()
testingtools.launch_vessel_from_vab('PartsLandingGear')
testingtools.remove_other_vessels()
cls.conn = testingtools.connect(name='TestPartsLandingGear')
cls.vessel = cls.conn.space_center.active_vessel
cls.parts = cls.vessel.parts
cls.state = cls.conn.space_center.LandingGearState