From 85fd1d0d859ebbedd242e3b78be88eac8c368922 Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Mon, 29 Jun 2026 21:23:10 -0500 Subject: [PATCH] correct errors and slight code cleanup --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 28d4c56..803e41c 100644 --- a/main.lua +++ b/main.lua @@ -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