Search results

  1. Hlynkacg

    C++ Question LNK2019 error despite including directories?

    So I'm working with VS2010 and like the title says. I'm getting lnk2019 errors for all functions declared as the part of "ComponentVessel" class despite having instrument.h included in my project and Orbiter/Orbitersdk/samples/common/vessel is on my list of additional include directories. Visual...
  2. Hlynkacg

    API Question Getting an MFD instance

    I know it's possible query the current mode of a given MFD, but is it possible to get the actual instance of the MFD class using Orbiter's API?
  3. Hlynkacg

    General Question Calculating Longitude of Ascending Node in Orbiter

    I wasn't sure I should put this under "Math and Physics or "SDK" but I'm trying to write a class/function that will generate Keplerian elements (in the reference body's equatorial frame) from the outputs of "oapiGetRelativePos()" and "oapiGetRelativeVel()". However I'm having issues calculating...
  4. Hlynkacg

    C++ Question Help with pointers

    Once again I apologize for the noobish question, but I haven't really worked with pointers much and I'd like some help. I want pass a variable to a class instance on initialization and then have it monitor the value of that variable without having to pass it again each time step. I know that...
  5. Hlynkacg

    C++ Question Reading a scenario line with 'n' variables

    As the title suggests, I'd like some help with parsing scenario files. I know how to use sscanf() to read a known # of variables off a line, but how would I go about adapting it to an unknown number of variables? The context is as follows. I currently have a std::map container that is used to...
  6. Hlynkacg

    SDK Question Module Catagories

    This may be a dumb question but how do I tell orbiter that my MFD is an MFD so that it will show up under the "MFD Modes" tab instead of the "Miscellaneous" Tab when I go to enable it?
  7. Hlynkacg

    Constant Bearing Intercepts in a Rotating Frame

    So I'm trying to write some code that will mimic the behavior of the Apollo Spacecraft's rendezvous guidance and instrumentation. could use some clarification. I know from reading NASA's documentation that the system used the Constant Bearing Method but I’m having trouble visualizing how this...
  8. Hlynkacg

    Memory Access Errors associated with mesh functions

    I've been getting a lot of unhandled exemptions / memory access errors associated with oapiMeshGroupEx, oapiGetMeshGroup, oapiMeshGroupCount, in the latest beta. This is problematic as I'm using these functions a lot in my VC code. I'm already checking to make sure that the mesh and visual...
  9. Hlynkacg

    Base / Orbit Synchronization

    I am currently working on refining my lunar lander's autopilot, and was wondering if anyone could help me work out the math behind BaseSync MFDs functionality. As it stands I calculate my closest point of approach (CPA) by projecting the position of my target onto my own orbital plane. While...
  10. Hlynkacg

    Calculating Descent Insertion

    So I am familiar with the equation for determining altitude and velocity at perigee but I could use some help calculating changes in the above. For instance how would I go about determining the dv required to turn a 200 mile circular orbit into a 200 x 50 mile orbit?
  11. Hlynkacg

    C++ Question Initializing a struct.

    In 'C' as well as a few other languages you can fill an array or struct via the following or something similar. struct foo = {value 1, value 2, value 3, etc...}; however this does not appear to work in C++. Long story short I would like to know why this works. strobe = new BEACONLIGHTSPEC...
  12. Hlynkacg

    Effective vertical acceleration due to gravity

    So I have run into a minor issue with my guidance algorithm that I could use some help with... Say you have an object suspended at the top of a tower (or a hovering spacecraft) and you release it (turn off the engines) it will accelerate towards the ground at a rate of 9.81 m/s^2 or whatever...
  13. Hlynkacg

    Plotting orbit ground track relative to a given point

    So After a long hiatus I'm back and I'm messing around in orbiter. I know this question has been asked before but lord help me if I can find it. Basically I'm trying to figure out if my orbital track will take me over a specific point on the surface (such as a base or specified Lat/Lng), or...
  14. Hlynkacg

    SDK Question Policy on using Martins' code

    This may be a silly question, and I probably just missed the document/place where this was described but... What is the official policy, if any, on using source files (or elements there of) from the Orbitersdk/Samples folder in one's own projects?
  15. Hlynkacg

    Problem SetAttitudeRotLevel () ignoring x Axis

    I'm not sure whether this belongs in "Bug-Reports" but I've found something odd. I'm testing an MFD auto pilot I've been working on using a "Stock" ShuttlePB as my Test Vehicle and have been having trouble with pitch authority. Upon closer inspection I have discovered that the ShuttlePB seems...
  16. Hlynkacg

    Calculating Yaw and Roll in a arbitrary frame

    I'm trying to write an MFD that will mimic the functionality of the default HUDs and I need some help with the math. I have a matrix made up of a x, a y, and a z reference vector. (Yes they are perpendicular to each-other). For eas of reference I am referint to these vectors as "vertical"...
  17. Hlynkacg

    C++ Question Need help with handles/pointers

    I lack the vocabulary to look this up so I'm going to describe the issue and hope someone can help me, or at least point me in the right direction. I have a base class, one of it's members is a std::vector full of objects. I want classes that are friends of, or derived from, my base class to...
  18. Hlynkacg

    API Question Troubleshooting a virtual cockpit HUD

    I'm having issues with the HUD in my lunar lander's VC. The mesh group and hudspec are properly defined but i'm not getting any of the normal HUD data. Observe... vs. the same exact view in glass cockpit. The docking gates, target box, and velocity piper should all be visible but they...
  19. Hlynkacg

    C++ Question matrix operation needed for control mixing.

    I have a set of simple 3x3 matrices that represent "mixing commands". // Mixer for Quadrant 1 // X Y Z //pitch 0, 1, 0 //yaw -1, 0, 0 //roll 0, 1, 0 In this example I want a positive pitch input to translate into 0 thrust along the quad's x and z axes and positive thrust...
  20. Hlynkacg

    API Question SURFHANDLE dimmensions

    This would seem like a simple question but a search of the forum and API documentation has turned up nothing. Is there a way to get the dimensions, height and width in pixels, of an existing surface handle or texture from within the API?
Top