can I read, yes
So I do I lock the pitch rate?
So I do I lock the pitch rate?
So I do I lock the pitch rate?
Ok. But how does the ship get to that rate if the target isn't the current rate
So confused
So we need current pitch rate, target pitch rate. Target rate is set by user?
So the PID looks at target rate and compares to current, right
And factor is what ever you want it to be.
Ok. so gimbal command is what tells the thrusters to do?
So for example target rate is 0 and current rate is 5
so error = 0-5
p=-5*factor
I didn't think I needed a guidance system. How to others deal with it?
I hope someone can help on this.
On the Endurance but other ships also. If I have 1 lander docked when I applied forward thrust I start to rotate left to right. It is due to docked vessel on one side.
So how can I either adjust the center of gravity or adjust the vector of thrust (Main,Rcs) to adjust for this?
void ENDURANCE::clbkPreStep(double simtt, double simdt, double mjd)
{
GetSuperstructureCG(superStructCG);
GetThrustVector(thrustvector);
}
What about this:
In every pre-step:
It would simulate a "high-performance balancing engine" in your vessel, if you really have to justify it . Not perfect, but I think it will get you there...
- query the superstructure CoG (GetSuperstructureCG())
- query the current thruster-force (GetThrustVector())
- do as if that later force is from 0|0|0, then calculate the perpendicular force component w.r.t. the line between 0|0|0 and the superstructure CoG,
- multiply this component with the line distance and you get the thruster-induced moment around the "new" CoG
- compensate this by means of 2 AddForce() in opposite directions around the new CoG in such a magnitude that it nullifies the thruster-induced moment.
Thanks
So I get this for step1 and 2. I am lost past that