MechJeb2

MechJeb2

4M Downloads

Main thrust engines now produce roll torque

Raf04 opened this issue ยท 1 comments

commented

When two or more engines are mounted in the same stage these provide now roll-torque.
This extra torque is not being considered. Also occurs with the most powerful engines of the pack "NASA missions".

This causes fluctuations in the roll axis. I think you have to check some lines of the file MechJebModuleAttitudeController.cs:

            Vector3d torque = new Vector3d(
                                                    vesselState.torqueAvailable.x + vesselState.torqueThrustPYAvailable * s.mainThrottle,
                                                    vesselState.torqueAvailable.y,
                                                    vesselState.torqueAvailable.z + vesselState.torqueThrustPYAvailable * s.mainThrottle
                                            );
commented

I know. I have a bunch of code here to deal with it but some math is still wrong.