Project Space Transportation System 2016

Trying to get the new moving dock code to work. But have another issue. I can't seem to find what is happening.

For the dock ring animation I have this:
if (TUNNELODS == 1) {//ODS is present if (APAS_status >= DOCK_RAISING) { double da = simdt * .1; if (APAS_status == DOCK_RAISING) { if (soft_capture_ring_proc > 0.0) soft_capture_ring_proc = max(0.0, soft_capture_ring_proc - da); else APAS_status = DOCK_UP; } else { if (soft_capture_ring_proc < 1.0) soft_capture_ring_proc = min(1.0, soft_capture_ring_proc + da); else APAS_status = DOCK_DOWN; } SetAnimation(anim_DOCKRING, soft_capture_ring_proc); //SetAnimation(anim_rods, soft_capture_ring_proc); CalculateRodAnimation(); //DoIDARing(); } }
enum APAS_status { DOCK_UP, DOCK_DOWN, DOCK_RAISING, DOCK_LOWERING }APAS_status;

void Atlantis::RevertDockingRing(void) { APAS_status = ((APAS_status == DOCK_UP || APAS_status == DOCK_RAISING) ? DOCK_LOWERING : DOCK_RAISING); }
APAS_status = DOCK_UP;
where is where it is saved:
sprintf(cbuf, "%d %0.4f", &APAS_status, &soft_capture_ring_proc); oapiWriteScenario_string(scn, "DOCKAPAS", cbuf); and read:
else if (!_strnicmp(line, "DOCKAPAS", 8)) { sscanf(line + 8, "%d%lf", &APAS_status, &soft_capture_ring_proc); }

The scenario starts out:DOCKAPAS 0 0.0000
and run the scenario and not pressing any keys
I get this:
DOCKAPAS 385911332 0.0000
 
I think when you pass &APAS_status to sprintf, you're actually saving the address, not the value, hence the weird number. Same would go for the proc, curious that it's saving 0 anyway, though I think it might be expecting a float (%0.4f) when proc is I'm assuming a double (lf), dunno if that trips it up.
 
I think when you pass &APAS_status to sprintf, you're actually saving the address, not the value, hence the weird number. Same would go for the proc, curious that it's saving 0 anyway, though I think it might be expecting a float (%0.4f) when proc is I'm assuming a double (lf), dunno if that trips it up.
Thanks

But all these work
else if (!_strnicmp(line, "PETD", 4)) { sscanf(line + 4, "%d%lf", &PETD_status, &PETD_proc); }
works
sprintf(cbuf, "%d %0.4f", EXT_status, EXT_proc); oapiWriteScenario_string(scn, "HATCH", cbuf);
enum APAS_status { DOCK_UP, DOCK_DOWN, DOCK_RAISING, DOCK_LOWERING }APAS_status; should be a single digit 0=dock up,.....

It seems to be good until it saves it.

So I added breaks to see where it was changed.

and at is good by the end of this when I exit;
void Atlantis::clbkSaveState(FILEHANDLE scn) {
Not sure what function is next to put a break?
 
Last edited:
Fixed the save state of the docking ring.
UGH
sprintf(cbuf, "%d %0.4f", APAS_status, soft_capture_ring_proc); oapiWriteScenario_string(scn, "DOCKAPAS", cbuf);

I need to better align the dock. But the moving dock works. I get a CTD when I undock though
 

Attachments

  • dockcamview1.jpg
    dockcamview1.jpg
    66.4 KB · Views: 5
  • dockcamview.jpg
    dockcamview.jpg
    56.5 KB · Views: 5
Thanks to @Max-Q and @diogom I got the moving dock to capture the Docking Module and lower to the shuttle. The scn starts and you grab the DM and move into position,
 

Attachments

  • sts74dmdock3.jpg
    sts74dmdock3.jpg
    42.3 KB · Views: 20
  • sts74dmdock2.jpg
    sts74dmdock2.jpg
    83.5 KB · Views: 16
  • sts74dmdock1.jpg
    sts74dmdock1.jpg
    67.9 KB · Views: 21
  • sts74rmsdm.jpg
    sts74rmsdm.jpg
    106.2 KB · Views: 21
Because there are 2 docks position. I just show which mesh and set the dock position. But. I need to see if I can use the same mesh so that the animation remains the same. And then have. ODSmesh show up at x,y,z position. And just change the XYZ position.

On the dock alignment. As I understand. The ODS mesh fits on top of the external airlock. So mesh alignment. then adjust the dock so that the docking target aligns with the crosshairs, right
 

Attachments

  • kh12.jpg
    kh12.jpg
    59 KB · Views: 23
  • kh12shuttle.jpg
    kh12shuttle.jpg
    28.5 KB · Views: 23
  • zenethstar.jpg
    zenethstar.jpg
    27.4 KB · Views: 22
Last edited:
Oh. I think it was just make this fictional payload.

I think I have the dock and moving dock fixed. For both the early and late Model
 
The Shuttle version of payloads that ended up flying on ELV’s: COBE, ROSAT, EUVE/XTE (IIRC XTE started as a Shuttle-deployed free-flyer then evolved into a replacement for EUVE on the same MMS via Shuttle servicing mission), CRRES, SIRTF. WindSat and GIRL (German Infrared Telescope) would be cool too
 
STS39 will take some payload items. 3 smaller satellites.

STS 54 should be easy. It basically is a TDRS/IUS and this device on the payload walls
Diffuse X-ray Spectrometer (DXS) which I think I built. Going to have to look for which shuttle.
 

Attachments

  • sts39payload1.jpg
    sts39payload1.jpg
    51.6 KB · Views: 29
  • sts39payload.jpg
    sts39payload.jpg
    42.5 KB · Views: 18
  • sts54payload.jpg
    sts54payload.jpg
    47.6 KB · Views: 27
  • sts64orbit.jpg
    sts64orbit.jpg
    84 KB · Views: 34
  • sts54orbit.jpg
    sts54orbit.jpg
    93.2 KB · Views: 29
STS54. I had STS 64 built. For me I can built the meshes,..
Let me look at STS 59/68
 

Attachments

  • STS54TDRSDEPLY.jpg
    STS54TDRSDEPLY.jpg
    25.2 KB · Views: 12
  • STS54DXS.jpg
    STS54DXS.jpg
    101.9 KB · Views: 12

Attachments

  • sts59srl1.jpg
    sts59srl1.jpg
    42.1 KB · Views: 6
  • sts59srl.jpg
    sts59srl.jpg
    72.8 KB · Views: 7
  • sts59srl2.jpg
    sts59srl2.jpg
    48.4 KB · Views: 7
  • sts59srl3.jpg
    sts59srl3.jpg
    100.8 KB · Views: 7
Last edited:
I need to make some adjustments.

I need to looks at the sides to see if foil or open?
 

Attachments

  • STS59C.jpg
    STS59C.jpg
    44.9 KB · Views: 10
  • STS59B.jpg
    STS59B.jpg
    57.7 KB · Views: 10
  • STS59A.jpg
    STS59A.jpg
    62.8 KB · Views: 10
I suspect that the SRL is the same for sts 54 and sts 68?
 

Attachments

  • STS59E.jpg
    STS59E.jpg
    76.7 KB · Views: 9
  • STS59D.jpg
    STS59D.jpg
    13.4 KB · Views: 9
Thanks. then as far as orbit goes STS59 and sts 68 are done:)
 

Attachments

  • STS59f.jpg
    STS59f.jpg
    43.6 KB · Views: 7
Back
Top