Project Space Transportation System 2016

Success.

I modified the SSU ODS. And then when I added the mesh I move it to correct position. And the animation works.


I wonder if I should try to add the moveable dock to the orange ODS? for docking with MIR
 

Attachments

  • AFTVIEWDOCK2.jpg
    AFTVIEWDOCK2.jpg
    48.6 KB · Views: 14
  • AFTVIEWDOCK.jpg
    AFTVIEWDOCK.jpg
    70.8 KB · Views: 14
On STS 2016 there are 2 docking position. For STS 74 the external airlock was moved back and a tunnel with hatch was added. That is why the different dock

I tried the moving dock on STS 74. And when I dock to the Docking Module. I get a crazy rotation issue.

No issue docking to ISS. So now it is the DM issue?

On the DM there are 2 docks.
CreateDock(_V(-0.042, 0, 2.136), _V(0, 0, 1), _V(0, -1, 0)); CreateDock(_V(-0.006, 0.000, - 2.125), _V(0, 0, -1), _V(0.500011, -0.866019, 0));

this is the dock that causes the rotation issue. Before making a moveable dock no issues

Any ideas? @Max-Q any ideas?

The DM is 30 degrees off.
https://en.wikipedia.org/wiki/Mir_Docking_Module#/media/File:Docking_Module_(STS-74).jpg
 

Attachments

  • SHUTTLEDOCKISSUE.jpg
    SHUTTLEDOCKISSUE.jpg
    12.9 KB · Views: 2
Last edited:
So it is related to this code. I don't call the code thenno issues:
void Atlantis::DoIDARing() { if (TUNNELODS == 1) { VECTOR3 new_dock_pos = _V(-0.042, 2.2250, 8.2264);; new_dock_pos.y += (soft_capture_ring_proc * 0.4);//0.45 OBJHANDLE v = GetHandle(); int idx = 0; // dock index OBJHANDLE docked_ship = GetDockStatus(GetDockHandle(0)); // object handle of docked vessel if (docked_ship != NULL) // make sure handle is valid, if it is... { VESSEL* docked = oapiGetVesselInterface(docked_ship); // get VESSEL interface for docked vessel int dcount = docked->DockCount(); // get number of docking ports for (int i = 0; i < dcount; i++) // Cycle through ports { if (docked->GetDockStatus(docked->GetDockHandle(i)) == GetHandle()) { idx = i; docked->Undock(idx, 0); SetDockParams(hDockODS2, new_dock_pos, SHUTTLE_DOCKDIR, SHUTTLE_DOCKROT); //sprintf(oapiDebugString(), "SHUTTLE_DOCKDIR.x %lf SHUTTLE_DOCKDIR.y %lf SHUTTLE_DOCKDIR.z %lf SHUTTLE_DOCKROT.x %lf SHUTTLE_DOCKROT.y %lf SHUTTLE_DOCKROT.z %lf", SHUTTLE_DOCKDIR.x, SHUTTLE_DOCKDIR.y, SHUTTLE_DOCKDIR.z, SHUTTLE_DOCKROT.x, SHUTTLE_DOCKROT.y, SHUTTLE_DOCKROT.z); docked->Dock(v, idx, 0, 0); } } } else { SetDockParams(hDockODS2, new_dock_pos, SHUTTLE_DOCKDIR, SHUTTLE_DOCKROT); } } }
 
So it is in the moving dock code. I can kill the angular motion but then when I move the docking ring in It spins


Here are images from sts 74 and rea life sts 76 docking of the DM
 

Attachments

  • sts76dock.jpg
    sts76dock.jpg
    123.6 KB · Views: 8
  • sts74dock1.jpg
    sts74dock1.jpg
    51.9 KB · Views: 8
Looks like the docking points and angle are off.
 
Of the docking module or shuttle. When docked to ISS it is good. Let me go back and look for drawings of dock and alignment of the DM
 
I think the DM alignment may be correct. In the original image the rail that I assume is on the center is off set.

On the DM its dock values are: CreateDock(_V(-0.006, 0.000, - 2.125), _V(0, 0, -1), _V(0.500011, -0.866019, 0)); which is 30 degrees offset

I think that is correct. @DaveS @Max-Q any thoughts
I think it is the moving dock code
 

Attachments

  • original.jpg
    original.jpg
    103.8 KB · Views: 6
  • sts74_28.jpg
    sts74_28.jpg
    48.2 KB · Views: 5
  • Docking_Module_cutaway (1).jpg
    Docking_Module_cutaway (1).jpg
    77.6 KB · Views: 5
  • DMALIGNMENT.jpg
    DMALIGNMENT.jpg
    73.9 KB · Views: 4
  • STS74DOCKINGREAL.jpg
    STS74DOCKINGREAL.jpg
    95.3 KB · Views: 5
  • dmdockfacingatlantisreal.jpg
    dmdockfacingatlantisreal.jpg
    64.7 KB · Views: 5
  • dmdockfacingatlantis.jpg
    dmdockfacingatlantis.jpg
    22.1 KB · Views: 5
Last edited:
Confused. Looking at actual images of the DM facing towards the shuttle. It appears the dock rotates? See on the view of the shuttle in sts 74 fin #3 is aligned with the keel support. But in sts 79 the docking ring is offset?
@DaveS any ideas?
 

Attachments

  • STS79DMVIEW.jpg
    STS79DMVIEW.jpg
    108 KB · Views: 10
  • sts74dmend1.jpg
    sts74dmend1.jpg
    71.8 KB · Views: 10
The STS-74 image obviously shows the Mir-side of the DM.
 
The dock alignment is correct. But the moving dock with the docking Module with a 30 degree offset causes issues. I tried docking with DarkEnergy and the same issue. Not if there is a fix.
 
I am not sure why the spin. All it is doing is undock and dock

//move ods dock void Atlantis::DoIDARing() { if (TUNNELODS == 1) { VECTOR3 new_dock_pos = _V(-0.042, 2.2250, 8.2264);; new_dock_pos.y += (soft_capture_ring_proc * 0.4);//0.45 OBJHANDLE v = GetHandle(); int idx = 0; // dock index OBJHANDLE docked_ship = GetDockStatus(GetDockHandle(0)); // object handle of docked vessel if (docked_ship != NULL) // make sure handle is valid, if it is... { VESSEL* docked = oapiGetVesselInterface(docked_ship); // get VESSEL interface for docked vessel int dcount = docked->DockCount(); // get number of docking ports for (int i = 0; i < dcount; i++) // Cycle through ports { if (docked->GetDockStatus(docked->GetDockHandle(i)) == GetHandle()) { idx = i; docked->Undock(idx, 0); //SetDockParams(hDockODS2, new_dock_pos, _V(0, 1, 0) , _V(0, 0, -1)); //sprintf(oapiDebugString(), "SHUTTLE_DOCKDIR.x %lf SHUTTLE_DOCKDIR.y %lf SHUTTLE_DOCKDIR.z %lf SHUTTLE_DOCKROT.x %lf SHUTTLE_DOCKROT.y %lf SHUTTLE_DOCKROT.z %lf", SHUTTLE_DOCKDIR.x, SHUTTLE_DOCKDIR.y, SHUTTLE_DOCKDIR.z, SHUTTLE_DOCKROT.x, SHUTTLE_DOCKROT.y, SHUTTLE_DOCKROT.z); docked->Dock(v, idx, 0, 0); } } //} } } }
 
Have you tried using Dock(v, idx, 0, mode) with mode 1 or 2?
 
Yes. Same result. It seems the dm docking values?
CreateDock(_V(-0.042, 0, 2.136), _V(0, 0, 1), _V(0, -1, 0)); MIR CreateDock(_V(-0.006, 0.000, - 2.125), _V(0, 0, -1), _V(0.500011, -0.866019, 0)); Shuttle

If I dock with MIR docking port no issues.



void Atlantis::DoIDARing() { //sprintf(oapiDebugString(), "new_dock_pos.y %lf soft_capture_ring_proc %lf ", new_dock_pos.y, soft_capture_ring_proc); if (TUNNELODS == 1) { VECTOR3 new_dock_pos = _V(-0.042, 2.2250, 8.2264);; new_dock_pos.y += (soft_capture_ring_proc * 0.4);//0.45 OBJHANDLE v = GetHandle(); int idx = 0; // dock index OBJHANDLE docked_ship = GetDockStatus(GetDockHandle(0)); // object handle of docked vessel if (docked_ship != NULL) // make sure handle is valid, if it is... { VESSEL* docked = oapiGetVesselInterface(docked_ship); // get VESSEL interface for docked vessel int dcount = docked->DockCount(); // get number of docking ports for (int i = 0; i < dcount; i++) // Cycle through ports { if (docked->GetDockStatus(docked->GetDockHandle(i)) == GetHandle()) { idx = i; docked->Undock(idx, 0); SetDockParams(hDockODS2, new_dock_pos, _V(0, 1, 0), _V(0, 0, -1)); docked->Dock(v, idx, 0, 0); } } } else { SetDockParams(hDockODS2, new_dock_pos, _V(0, 1, 0), _V(0, 0, -1)); } } }


When the scn starts I can kill the angular rotation of the shuttle but then it starts back up
 
Last edited:
So the thing is, as the ring retraction plays out and it undocks and docks, it induces angular rotation on the shuttle+DM? I had somehow understood it was the docking module's docked angle which was changing.
 
So the thing is, as the ring retraction plays out and it undocks and docks, it induces angular rotation on the shuttle+DM? I had somehow understood it was the docking module's docked angle which was changing.
Yes. Because the docking module alignment is 30 degrees off center. It causes the angular rotation
 
I don't recall if I had trouble with angular motion, but I did have an issue where each time it docked, the orbit would change, over the whole sequence it added up to quite a bit. The "teleportation" probably disturbs a few things. Try using GetAngularVel before undocking and SetAngularVel after redocking with the same vector. For the orbit thing, I had to do similar with Get and SetElements.
 
I wonder if I have the dock on the mesh correct. I have it matched to the drawing/ images. It looks to align with the shuttle the docking module needs to be 30 degrees offset.
Any thoughts? @DaveS @Max-Q
 
Rethinking the docking module.

Here is STS 76. As you can see fin 3 of the DM is along the z axis. Maybe the dock is 0,0,-1 but the mesh is rotated 30 degrees?
 

Attachments

  • sts76dock1.jpg
    sts76dock1.jpg
    104.3 KB · Views: 2
The docking Module mesh is correct. To dock with the shuttle. the docking Module has to be rotated 30 degrees

Here the DM mesh is rotated 30 degrees
 

Attachments

  • dmdockalignment.jpg
    dmdockalignment.jpg
    91.1 KB · Views: 1
  • shuttledockdm.jpg
    shuttledockdm.jpg
    52 KB · Views: 1
Back
Top