Jump to content

TJ179

Members
  • Posts

    9
  • Joined

  • Last visited

Reputation

0 Neutral

Profile Information

  • About me
    Curious George

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey. i want to make an script in kos that can calculate und flay from any planet to an other planet, like Trigger Transfer Window. i had tried a lot but i have nothing that works in the right way... can someone help me please?
  2. Hey. i want to make an script in kos that can calculate und flay from any planet to an other planet, like Trigger Transfer Window. i had tried a lot but i have nothing that works in the right way... can someone help me please?
  3. Hey thanks this discuasion i had Fond in the past. It is possible to calculate a future True anomaly with the current true anomaly
  4. Hey :)

     

    I want to inplement a function into the orbit structure. 

     

    The function input of the function is time in seconds or so. 

    The Output is the trueanomaly at this time. 

     

    I had read that the kspAPI has a function orbit.trueanomalyatut.  i want to use this function to calculate the trueanomaly at a certain time.  I had trieb on my own but it didnt work. 

     

    Can you Held me ?

     

  5. Thx for this info. Do you know how i can add in kos source a function with Parameter in a suffix structure? Maybe its the best i try to implement from ksp the function trueanomalyatut () in Order to use it on kos Script.
  6. I knows that but i cant calculate the trueanomaly at a Time in the future... like orbit:trueanomaly(10 days in the future) Thats my Problem.
  7. Hey, it is possible to calculate the True Anomaly, Mean Anomaly an Eccentricity Anomaly with kOS ? my goal is to wirte a program that can calculate the transfer window like http://forum.kerbalspaceprogram.com/index.php?/topic/84005-10x-transfer-window-planner-v1400-dec-3/. i had tried a lot but nothing works right. One time i tried to copy the code from TransferWindowPlanner and convert it to kOS script. One other time i tried to add kOS Code with some function like TrueAnomalyAtUT and so on... can someone help me ? Sry for the very bad english
  8. Hey, i have problems to calculate the right PhaseAngle with kOS. here my Script: function CurrentPhaseAngle{ parameter origin. parameter destination. set normal to origin:OBT:POSITION:NORMALIZED. set projected to VECTOREXCLUDE(normal,destination:POSITION). set result to VECTORANGLE(origin:POSITION, projected). if VDOT(VCRS(origin:POSITION, projected), normal) < 0 { return 360 - result. } else { return result. } } set currentPhase to CurrentPhaseAngle(Kerbin,Duna). print "CurrentPhaseAngle:"+ currentPhase. Result is i my example 90° to from Kerbin to Duna but transfer Window Planer says it's 119°. can someone help me ?
  9. Hey ich hab mir das mal eben angeschaut eine relativ einfach Möglichkeit wäre ein Script schrieben was als erste mit den werten ein Orbit macht. Hab mir das so überlegt das du beim Start deiner Rakete eine Neigung vorgibst. Z.B: LOCK STEERING TO HEADING(56,90). Die 90° müssen durch das Script immer wieder angepasst werden so das du dein Orbit ja schaffst. somit bekommst du schonmal eine gewünschte Richtung hin. bei mir waren es 30° Inclination am ende. Wenn du deinen Orbit dann hast mit einer gewissen Neigung kannst du im nach gang schauen ob die Inclination der Flugbahn die 56° hat oder nicht. Wenn nicht musst du ein Manuver ansteuern was die restlichen 26° absolviert. Getestet hab ich das alles leider nicht aber ist von mir mal ein Gedanken anstoß vlt hilft er dir weiter
  10. hey maybe you can use parts of this mod http://www.curse.com/ksp-mods/kerbal/222276-tarsier-space-technology
×
×
  • Create New...