Search results

  1. S

    Unit tests for SSU

    I've been thinking about adding some unit tests for SSU. Does anyone have any comments or objections? Also, can anyone recommend a C++ testing framework? I've been thinking of using Google test.
  2. S

    API Question Drawing Rotated Text

    Is there any way to draw rotated text (i.e. text tilted at a 45 degree angle) using the Sketchpad class? The oapi::Font constructor seems to support this, but the oapiCreateFont class doesn't. You probably could get the HDC associated with the sketchpad and use GDI, but I'd prefer to avoid this...
  3. S

    API Question Rotating Entire Mesh

    Is there an easy way to rotate an entire mesh after creating it? The easiest thing would be to create an animation that works on the entire mesh. The problem with this is that, if you need other animations, all the groups in the mesh that aren't being animated have to be listed when creating...
  4. S

    Ideas for reading scn file values

    Here's an idea I've had for reading the scn file on startup: Loop through the entire scenario, split each string into key and line sections (like we do for Subsystems) and store these pairs in a map/hash_map. Then we can read the values from the dictionary in whatever order we want. I think the...
  5. S

    API Question GetAirspeed() returns -1.#IND

    If an attached vessel is detached and DefSetStateEx is used to set its position and velocity, GetAirspeed calls in that timestep return an invalid number. It would be nicer if GetAirspeed could always return a valid number.
  6. S

    SSU V1.25 Release

    This thread is for SSU Developers to discuss the V1.25 release, tentatively planned for Oct. 10. We should try to keep the list below updated to keep track of what still needs work. Features/bug fixes to be implemented before release: Drag chute on landing (done) Fix HUD (done) Launch offset...
  7. S

    RCS and DAP development

    This thread is for development of the RCS system and attitude autopilot. Does anyone know how the P and Y angles in UNIV PTG are used to specify a body vector? I'm guessing the P angles is between the vector and the XZ-plane, and the Y angles is between the vector and the YZ-plane, but I'm not...
  8. S

    MDU/IDP coding

    I'm planning to start changing CRT MFD to use the MDU to get display information. I think the best way to do this is to have an array of strings in the MDU. Each string will contain the output for one line on the MFD. Any comments?
  9. S

    Converting reference frames

    I'm trying to find the attitude of a vessel orbiting Earth in the M50 reference frame. This is a right-handed frame where the X axis points towards the vernal equinox and the Z axis is parallel to Earth's rotation axis. (To be precise, these axes should be correct for the year 1950, although I...
Top