kristian80 / HSL

Helicopter Sling Line
GNU General Public License v3.0
4 stars 2 forks source link

Stabilizing lateral cargo movement for short rope lengths #4

Closed d41k4n closed 4 years ago

d41k4n commented 4 years ago

For added medevac winch ops realism it would be great if cargo lateral movement (oscillation) became (gradually) constrained/dampened when the rope length goes below a certain threshold (say <1m) - this is to account for the crew and winch operator being able to hold on to aircraft structure and rope for stabilizing lateral movement and preventing potentially catastrophic oscillations to develop as their frequency increases due to energy conservation...

kristian80 commented 4 years ago

The idea is to add external force + rotation for external plugins. Then an external plugin can implement the operators. It's just not done yet.

d41k4n commented 4 years ago

Could you explain what the following properties do:

? https://github.com/kristian80/HSL/blob/8d9e90c7eb436af18dc86cbf067fb92a366d909a/HSL_PlugIn.cpp#L788-L789

PS: Currently testing your latest commit - thanks a lot!

kristian80 commented 4 years ago

operator_length: If the length of the rope is below this threshold, the additional cargo damping is activated.

operator_force: The maximum force for this additional damping [N].

There is no reaction time like a human operator would have. If the load is slightly out of place, it will get re-positioned immediately. Hence, my default value for the maximum force is a bit on the low side to compensate for the fact that no human could react that quickly.

kristian80 commented 4 years ago

BTW: I have the documentation ready. You can have a look if it is clear enough: https://github.com/kristian80/HSL/blob/master/Documentation/HSL_Documentation.pdf

d41k4n commented 4 years ago

Thanks. I already went through the docs - didn't see anything mentioned for these two parameters, hence my question...

After running some tests I'm quite happy for the most part.

What could still be improved is the behavior of the hook when the rope is at minimum length e.g. at cruising speeds this still produces erratic and catastrophic oscillations - often with rope rupture. Maybe it would be better to automatically disable physics calculations in this configuration and "freeze" the hook at the current position in aircraft coordinates.

I'm using high performance mode (I have a hexacore CPU).

kristian80 commented 4 years ago

Seems I also forget to register it as a Dataref

d41k4n commented 4 years ago

Solved with introduction of operator_force