I am designing my first vessel and am have trouble with getting it to dock to a Delta Glider.
SetDockParams (_V(0,8.86,0), _V(0,-1,0), _V(0,1,0));
is the line of code.
So the docking port is aligned to the centre line of the craft but 8.86 metres up. For me to say its working right, you need to move down a line coming out of the top dead centre of the craft to do a good docking.
As I know little about C++, it is modified Code from the ShuttlePB in the samples folder.
From the 3Dmodel PDF
<xi> <yi> <zi> is the reference position of the docking port in the vessel’s local coordinates.
{8.86 Metres up got that}
<dxi> <dyi> <dzi> is the direction in which a ship approaches the dockingport in the station’s local reference frame. 0,1,0 or maybe 0,-1,0 to come in “head” first {tried both!!!}
“<rxi> <ryi> <rzi> is a reference direction perpendicular to the approach direction used for aligning an approaching ship’s rotation along its longitudinal axis.”
As a native English speaker I understand the words but have no real idea of what this is on about!! nor does playing with the values seem to change anything.
Using the UAP docking auto pilot the craft get close to the Test DG but only seems to want connect via its ears not the top of its head!! It never does that last 90 degree rotation required.
The RCS works fine manually and the standard VC buttons will get it to move to prograde, kill rotation and the like
Any pointers here gents????
---------- Post added at 03:52 PM ---------- Previous post was at 03:51 PM ----------
Yes I re compile the .dll after each change
SetDockParams (_V(0,8.86,0), _V(0,-1,0), _V(0,1,0));
is the line of code.
So the docking port is aligned to the centre line of the craft but 8.86 metres up. For me to say its working right, you need to move down a line coming out of the top dead centre of the craft to do a good docking.
As I know little about C++, it is modified Code from the ShuttlePB in the samples folder.
From the 3Dmodel PDF
<xi> <yi> <zi> is the reference position of the docking port in the vessel’s local coordinates.
{8.86 Metres up got that}
<dxi> <dyi> <dzi> is the direction in which a ship approaches the dockingport in the station’s local reference frame. 0,1,0 or maybe 0,-1,0 to come in “head” first {tried both!!!}
“<rxi> <ryi> <rzi> is a reference direction perpendicular to the approach direction used for aligning an approaching ship’s rotation along its longitudinal axis.”
As a native English speaker I understand the words but have no real idea of what this is on about!! nor does playing with the values seem to change anything.
Using the UAP docking auto pilot the craft get close to the Test DG but only seems to want connect via its ears not the top of its head!! It never does that last 90 degree rotation required.
The RCS works fine manually and the standard VC buttons will get it to move to prograde, kill rotation and the like
Any pointers here gents????
---------- Post added at 03:52 PM ---------- Previous post was at 03:51 PM ----------
Yes I re compile the .dll after each change