Search results

  1. W

    PD loop tuning

    Hello Forum, For practice I made a PD loop which is supposed to control the acceleration of the spacecraft. My problem with the loop is, that the throttle stutters back and forth between no thrust and full thrust. I'm not sure what the problem is, maybe someone can give a hint? PD_loop.lua...
  2. W

    SDK Question Move a vessel relative to another

    Hi, I have an origin vessel and a target vessel which is moving relative to the origin vessel in relatively close vicinity. Now I want a third vessel to move on an intercept course from the origin to the target vessel. I think that I have the calculation of the aimpoint right but I cannot figure...
  3. W

    Mapping angles

    For a free-time programming effort I want to map relative bearings from 0 to 360 degrees to position strings like "front", "right", "back", "left" as illustrated in the attached image. I'm having problems with handling the "front" sector due to the transition from 359 to 0 degrees. Checking the...
  4. W

    TransX EEJ flight plan around 2020

    I'm trying to create an Earth-Earth-Jupiter flight plan around the year 2020 with TransX. The Trajectory Browser as well as the trajectory optimization tool suggest that this is possible. In TransX however, I cannot get the closest approach to Jupiter actually close enough for an actual...
  5. W

    API Question Using FILEHANDLE to retrieve data in arbitrary format?

    Can FILEHANDLE returned from oapiOpenFile or passed as parameter in clbkSetClassCaps be used to retrieve data in the config file which is not stored in the identifier = value format? Or would the config file needed to be separately opened with standard C++ functions to retrieve such data?
  6. W

    General Question VESSEL and MFD in a single project?

    OrbiterSDK and Visual Studio newbie here :hello: I want to implement an MFD that works only with a sub-class of VESSEL3 that I also want to implement myself. For this there are currently two projects in my Visual Studio Express 2010: the implementation of my vessel base class (AVTVessel)...
  7. W

    TransX Trajectories jumping wildly

    I've been noticing that sometimes the displayed trajectory in TransX plans jumps around violently even several seconds after I made the last change in any stage of the plan with no sign of the trajectory settling down (a little like in flytandem's avatar here in the forum, but much more...
  8. W

    LUA CTD in MFD script code (resolved)

    I am trying to check whether the currently focused vessel is docked to the ISS in a ScriptMFD with the following Lua code. It works fine when the vessel is actually docked to the ISS but Orbiter crashes when the vessel is undocked and I don't understand why. The crash does not occur when I...
  9. W

    Draw a rectangle centered on a hexagon

    I am trying to draw a Rectangle centered on a hexagon like in the attached illustration and I would like to ask for help how to achieve that. For the drawing API I'm using I need to know: the location of the top-left point of the rectangle I know: the location of the hexagon's center the...
  10. W

    LUA Store and reload MFD

    I want to store a value in my Lua-based MFD when the user exits Orbiter and restore it when the next Orbiter session is started. But I don't understand how the MFD callback functions writestatus(scn) readstatus(scn) are supposed to be used. Do I have to define both functions in my MFD's .cfg...
  11. W

    TransX Change LEO inc. with a Moon slingshot

    I'm trying to change my Low Earth Orbit's inclination with a Moon slingshot in TransX. Is this possible to setup with TransX completely before leaving LEO? What I've tried so far is to setup the Moon slingshot and in stage 3 set a dummy ship as target which is exactly in the orbit I want to...
Top