correct errors and slight code cleanup

This commit is contained in:
2026-06-29 21:23:10 -05:00
parent 0766e4ce5a
commit 85fd1d0d85

View File

@@ -866,10 +866,10 @@ function UpdateGlobalThrust()
-- Calculate desired thrust based on affectVectors and PID outputs
if thruster.affectVectors.angular.pitch ~= nil and thruster.primary_pitch_thruster then
desiredThrust = desiredThrust + pitchOutput
desiredThrust = desiredThrust + pitchRateOutput
end
if thruster.affectVectors.angular.roll ~= nil and thruster.primary_roll_thruster then
desiredThrust = desiredThrust + rollOutput
desiredThrust = desiredThrust + rollRateOutput
end
if thruster.affectVectors.angular.yaw ~= nil and thruster.primary_yaw_thruster then
desiredThrust = desiredThrust + yawRateOutput