I want to support various engine setups in my AP, tail sitters, thruster pads and so on. My idea was to loop through all thruster groups and then check the vectors which one would fit to my needs. So maybe I can use the main engine in fact but treat it like a hover engine for all calculations.
My first problem: I use THGROUP_X to read or set thruster levels, but ENGINE_X to get the max thrust of that engine (and the real thrust of course by multiplicating max thrust with thruster level). I can't see any relations other than by name wich THGROUP belongs to wich ENGINE. Of course THGROUP_MAIN is for ENGINE_MAIN but when I loop through them dynamically by index or so, which one is wich?
The more general question is: I know GetMaxThrust(ENGINE_X) is deprecated. So what is the correct way to get the max or current thrust by thruster group and not by engine handle? I know there is GetThrusterIsp(THGROUP_X) what looks nearly like what I want. But that does not return the THRUST but the impulse ISP. How can I calculate the max thrust by impulse?
My first problem: I use THGROUP_X to read or set thruster levels, but ENGINE_X to get the max thrust of that engine (and the real thrust of course by multiplicating max thrust with thruster level). I can't see any relations other than by name wich THGROUP belongs to wich ENGINE. Of course THGROUP_MAIN is for ENGINE_MAIN but when I loop through them dynamically by index or so, which one is wich?
The more general question is: I know GetMaxThrust(ENGINE_X) is deprecated. So what is the correct way to get the max or current thrust by thruster group and not by engine handle? I know there is GetThrusterIsp(THGROUP_X) what looks nearly like what I want. But that does not return the THRUST but the impulse ISP. How can I calculate the max thrust by impulse?