Jump to content

funkheld

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by funkheld

  1. it would be nice if you could describe it in detail for the ksp 1.6. which files you can download exactly where and which files belong together. I see here only your lonely playfulness as a loner without a precise reference. Grud
  2. Hi good afternoon. ........................................ it ok. greeting for g in ADDONS:IR:GROUPS { for s in g:servos { if (s:NAME = "test1") { s:MOVETO(90, 2). } if (s:NAME = "test2") { s:MOVETO(45, 2). } } }
  3. Hi good afternoon. I play with krpc. I have four servos. How can I address a particular servo? import time import krpc conn = krpc.connect ( name = 'servo1' address = '127.0.0.1' rpc_port = 1000, stream_port = 1001) vessel = conn.space_center.active_vessel group = conn.infernal_robotics.servo_group_with_name (vessel, 'New Group') if group is None: print ('Group not found') exit (1) for servo in group.servos: data = (servo.name, servo.position) servo.move_right () time.sleep (2) servo.move_left () time.sleep (2)
  4. Here is a picture of the whole screen. no "IK Robot controller" Thanks & Greetings.
  5. ------------------------------------- Does it work? --------------------------------------- I can click OK. I can move the individual joints. but each hinges only with its own window. but the "IK Robot Controller" can not be seen working. Thank you. greeting
  6. I can move my arms individually with the individual windows from the hinges. but "CA2 IK ROBOT Controller" window does not appear. Thank you. greeting
  7. ------------------------------------------------- Does "Dump ServoStructure" not appear? ----------------------------------------------- yes ,is displayed "Servo dumping Message" "servo structure dumped" "OK" Greeting
  8. Hello Thanks. This not function. TRF_CA2_LEE is on !!! no robotcontroller. why ??? this is my program: IKRC-for-Kerbal-master.zip greeting
  9. Hi good afternoon. which is the basic element for the canadarm2 so that the control window appears. It does not work for me. Thank you. greeting
  10. thanks for the information. How do I get the IR sequencer visible? the window does not appear. Thank you. greeting
  11. how can you make the ik-robot controller visible? I do not see him. Thank you. greeting
  12. how can you please use hexpod with kOS? Thank you. greeting
  13. Hi good afternoon. how can you please now with kOS: https://forum.kerbalspaceprogram.com/index.php?/topic/170898-wip-infernal-robotics-next/& control. Thank you. greeting
  14. where can you please download the hexapod? Thank you. greeting
  15. Hi good afternoon. How is laserdist with krpc? Thank you. greeting
  16. Hi good afternoon. with kos i have this laserdist on the run with python. how can you please implement the program for krpc? Thank you. Greeting set laser TO SHIP:MODULESNAMED("LaserDistModule")[0]. until false { print "Distanz = " + round(laser:Getfield("Distance"),1) + " Meter " at(0,5). wait 0.2. }
  17. Hi good afternoon. I built two computers at the Pegasus: - Pegasus CPU: CompoMax (test) - Pegasus CPU: CompoMax (test1) How can I load a program in each one now? test.ks and test1.ks Thank you. greeting
  18. Thanks for your help. I can not do that with my 70 years. Can you please help me with a little demo? Many Thanks. greeting
  19. Hi good afternoon. can you start with kos two programs independently please? Thank you. greeting program 1: until false { PRINT ":". PRINT ROUND(SHIP:ALTITUDE,0). PRINT ":". PRINT ROUND(SHIP:APOAPSIS,0). PRINT ":". PRINT ROUND(SHIP:PERIAPSIS,0). PRINT ":". PRINT ROUND(SHIP:VELOCITY:SURFACE:MAG,1). PRINT ":". wait 0.1. } program 2: until false { wait 0.1. }
  20. Hi good afternoon. I play with kRPC and it works wonderfully with Python 2.7.15 and Python 3.7. und Kerbal Space Program 1.6.1 All four test programs do not work from kRPC.MechJeb -------------------------- - pip install krpc is ok. --------------------------- Now I wanted to test the kerbal kRPC.MechJeb: -Mechjeb2 installed. -Copy KRPC.MechJeb.dll to Kerbal Space Program / GameData / kRPC directory. I tested two addresses in kRPC. this address : ----------------------------- conn = krpc.connect(name='Launch into orbit', address='127.0.0.1', rpc_port=1000, stream_port=1001) ----------------------------- not function ! this addres : ----------------------------- conn = krpc.connect(name='Launch into orbit', address='127.0.0.1', rpc_port=50000, stream_port=50001) ----------------------------- not function ! program LaunchIntoOrbit.py import krpc conn = krpc.connect(name='Launch into orbit', address='127.0.0.1', rpc_port=1000, stream_port=1001) sc = conn.space_center mj = conn.mech_jeb ascent = mj.ascent_autopilot #All of these options will be filled directly into Ascent Guidance window and can be modified manually during flight. ascent.desired_orbit_altitude = 100000 ascent.desired_inclination = 6 ascent.force_roll = True ascent.vertical_roll = 90 ascent.turn_roll = 90 ascent.autostage = True ascent.enabled = True sc.active_vessel.control.activate_next_stage() #launch the vessel with conn.stream(getattr, ascent, "enabled") as enabled: enabled.rate = 1 #we don't need a high throughput rate, 1 second is more than enough with enabled.condition: while enabled(): enabled.wait() print("Launch complete!") conn.close() errormeldung with LaunchIntoOrbit.py : ------------------------------------------- f:\python27>python.exe f:\python27\pebi-py\LaunchIntoOrbit.py Traceback (most recent call last): File "f:\python27\pebi-py\LaunchIntoOrbit.py", line 9, in <module> ascent = mj.ascent_autopilot File "<string>", line 1, in <lambda> File "f:\python27\lib\site-packages\krpc\client.py", line 163, in _invoke raise self._build_error(response.results[0].error) krpc.types.MJServiceException: Exception has been thrown by the target of an invocation.: Non-static field requires a target Server stack trace: at KRPC.MechJeb.ExtensionMethods.TypeExtensions.CreateInstance[AscentAutopilot] (System.Type type, System.Object[] args) [0x00000] in <filename unknown>:0 at KRPC.MechJeb.MechJeb.GetComputerModule[AscentAutopilot] (System.Object[] modules, Int32 id, System.Object[] args) [0x00000] in <filename unknown>:0 at KRPC.MechJeb.MechJeb.GetComputerModule[AscentAutopilot] (System.Object[] modules, Int32 id) [0x00000] in <filename unknown>:0 at KRPC.MechJeb.MechJeb.get_AscentAutopilot () [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 ---------------------------------------- thanks. greeting
×
×
  • Create New...