Hi everyone,
during my latest project I ran into a problem which I don't quite understand...
I have two vessels, say ISS (tgtVessel) and Deltaglider (myVessel). The vessels are docked, forming a superstructure.
I have written a small piece of code that should calculate the relative velocity between the CoG of the two vessels. ( I know there is a Orbiter function which does exactly that, but that's beside the point).
The output is always "0.000 0.000 0.000".
If the superstructure has no angular velocity, the result is as expected.
If I add a rotation rate to the superstructure (via the scenario editor / angular velocity menu) , I would expect that there would be a difference between the global velocity vectors of the two different CoGs, due to the superposition of the rotation and the translation of the superstructure. However, the output still remains "0.000 0.000 0.000".
Maybe someone out there can enlighten me as to where I am mistaken? I have been on this problem for quite some time now, and I am beginning to doubt my entire understanding of kinematics ... or maybe it's just the lack of sleep. :rofl:
Anyway, any help at all would be greatly appreciated.
Thanks!
during my latest project I ran into a problem which I don't quite understand...
I have two vessels, say ISS (tgtVessel) and Deltaglider (myVessel). The vessels are docked, forming a superstructure.
I have written a small piece of code that should calculate the relative velocity between the CoG of the two vessels. ( I know there is a Orbiter function which does exactly that, but that's beside the point).
Code:
VECTOR3 issVel;
oapiGetGlobalVel(tgtVessel->GetHandle(),&issVel);
VECTOR3 dgVel;
oapiGetGlobalVel(myVessel->GetHandle(), &dgVel);
sprintf(oapiDebugString(), "Relative velocity: %f %f %f ",(dgVel-issVel).x,(dgVel-issVel).y,(dgVel-issVel).z);
The output is always "0.000 0.000 0.000".
If the superstructure has no angular velocity, the result is as expected.
If I add a rotation rate to the superstructure (via the scenario editor / angular velocity menu) , I would expect that there would be a difference between the global velocity vectors of the two different CoGs, due to the superposition of the rotation and the translation of the superstructure. However, the output still remains "0.000 0.000 0.000".
Maybe someone out there can enlighten me as to where I am mistaken? I have been on this problem for quite some time now, and I am beginning to doubt my entire understanding of kinematics ... or maybe it's just the lack of sleep. :rofl:
Anyway, any help at all would be greatly appreciated.
Thanks!